From 5d5c7142f7fa2447e13bcb80a272b0d9dfc28f06 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Mon, 4 Jan 2010 12:03:47 +0000 Subject: [PATCH] text: Use G_SIGNAL_ACTION for ::insert-text and ::delete-text 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clutter/clutter-text.c b/clutter/clutter-text.c index 37636e717..f77405531 100644 --- a/clutter/clutter-text.c +++ b/clutter/clutter-text.c @@ -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,