Bug 1409 - Use G_SIGNAL_RUN_LAST with ::queue-redraw signal

The intention behind ::queue-redraw is to be able to block the
default handler by attaching a callback and calling one of the
g_signal_stop_emission variants.

However this doesn't work, because ::queue-redraw has the
G_SIGNAL_RUN_FIRST flag instead of G_SIGNAL_RUN_LAST.
This commit is contained in:
Jason Tackaberry 2009-01-22 13:38:32 +00:00 committed by Emmanuele Bassi
parent 01a5cb8430
commit c998462c9f

View File

@ -769,7 +769,7 @@ clutter_stage_class_init (ClutterStageClass *klass)
stage_signals[QUEUE_REDRAW] = stage_signals[QUEUE_REDRAW] =
g_signal_new (I_("queue-redraw"), g_signal_new (I_("queue-redraw"),
G_TYPE_FROM_CLASS (gobject_class), G_TYPE_FROM_CLASS (gobject_class),
G_SIGNAL_RUN_FIRST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (ClutterStageClass, queue_redraw), G_STRUCT_OFFSET (ClutterStageClass, queue_redraw),
NULL, NULL, NULL, NULL,
clutter_marshal_VOID__VOID, clutter_marshal_VOID__VOID,