text: Use G_SIGNAL_ACTION for ::insert-text and ::delete-text
authorEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 4 Jan 2010 12:03:47 +0000 (12:03 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 4 Jan 2010 12:03:47 +0000 (12:03 +0000)
Both the ::insert-text and ::delete-text are "action" signals, that is
signals that are safe to (and should) be emitted using g_signal_emit()
directly.

clutter/clutter-text.c

index 37636e7..f774055 100644 (file)
@@ -2594,7 +2594,7 @@ clutter_text_class_init (ClutterTextClass *klass)
   text_signals[INSERT_TEXT] =
     g_signal_new ("insert-text",
                   G_TYPE_FROM_CLASS (gobject_class),
-                  G_SIGNAL_RUN_LAST,
+                  G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
                   0,
                   NULL, NULL,
                   clutter_marshal_VOID__STRING_INT_POINTER,
@@ -2617,7 +2617,7 @@ clutter_text_class_init (ClutterTextClass *klass)
   text_signals[DELETE_TEXT] =
     g_signal_new ("delete-text",
                   G_TYPE_FROM_CLASS (gobject_class),
-                  G_SIGNAL_RUN_LAST,
+                  G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
                   0,
                   NULL, NULL,
                   clutter_marshal_VOID__INT_INT,