diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-05-08 08:18:20 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-05-08 08:18:20 +0800 |
commit | 0dabeb5908d978a1674fb276d5408e09a4ef4d4d (patch) | |
tree | 511c288e0e8f4d772e486781822fa674489c24d8 /widgets | |
parent | fe9d3ea8fa7ef4d4385edd93bf19de46d218135e (diff) | |
download | gsoc2013-evolution-0dabeb5908d978a1674fb276d5408e09a4ef4d4d.tar.gz gsoc2013-evolution-0dabeb5908d978a1674fb276d5408e09a4ef4d4d.tar.zst gsoc2013-evolution-0dabeb5908d978a1674fb276d5408e09a4ef4d4d.zip |
Added an activate signal.
2000-05-08 Christopher James Lahey <clahey@helixcode.com>
* widget/e-text/e-text.c, widgets/e-text/e-text.h: Added an
activate signal.
svn path=/trunk/; revision=2890
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/e-text/e-text.c | 11 | ||||
-rw-r--r-- | widgets/e-text/e-text.h | 1 | ||||
-rw-r--r-- | widgets/text/e-text.c | 11 | ||||
-rw-r--r-- | widgets/text/e-text.h | 1 |
4 files changed, 24 insertions, 0 deletions
diff --git a/widgets/e-text/e-text.c b/widgets/e-text/e-text.c index eac1f42e08..0086a80194 100644 --- a/widgets/e-text/e-text.c +++ b/widgets/e-text/e-text.c @@ -32,6 +32,7 @@ enum { E_TEXT_CHANGED, + E_TEXT_ACTIVATE, E_TEXT_LAST_SIGNAL }; @@ -202,6 +203,14 @@ e_text_class_init (ETextClass *klass) gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); + e_text_signals[E_TEXT_ACTIVATE] = + gtk_signal_new ("activate", + GTK_RUN_LAST, + object_class->type, + GTK_SIGNAL_OFFSET (ETextClass, activate), + gtk_marshal_NONE__NONE, + GTK_TYPE_NONE, 0); + gtk_object_class_add_signals (object_class, e_text_signals, E_TEXT_LAST_SIGNAL); @@ -270,6 +279,7 @@ e_text_class_init (ETextClass *klass) klass->changed = NULL; + klass->activate = NULL; object_class->destroy = e_text_destroy; object_class->set_arg = e_text_set_arg; @@ -2786,6 +2796,7 @@ e_text_command(ETextEventProcessor *tep, ETextEventProcessorCommand *command, gp e_text_get_selection (text, GDK_SELECTION_PRIMARY, command->time); break; case E_TEP_ACTIVATE: + gtk_signal_emit (GTK_OBJECT (text), e_text_signals[E_TEXT_ACTIVATE]); if (text->timer) { g_timer_reset(text->timer); } diff --git a/widgets/e-text/e-text.h b/widgets/e-text/e-text.h index 45a7de404b..6409ede6dc 100644 --- a/widgets/e-text/e-text.h +++ b/widgets/e-text/e-text.h @@ -202,6 +202,7 @@ struct _ETextClass { GnomeCanvasItemClass parent_class; void (* changed) (EText *text); + void (* activate) (EText *text); }; diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index eac1f42e08..0086a80194 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -32,6 +32,7 @@ enum { E_TEXT_CHANGED, + E_TEXT_ACTIVATE, E_TEXT_LAST_SIGNAL }; @@ -202,6 +203,14 @@ e_text_class_init (ETextClass *klass) gtk_marshal_NONE__NONE, GTK_TYPE_NONE, 0); + e_text_signals[E_TEXT_ACTIVATE] = + gtk_signal_new ("activate", + GTK_RUN_LAST, + object_class->type, + GTK_SIGNAL_OFFSET (ETextClass, activate), + gtk_marshal_NONE__NONE, + GTK_TYPE_NONE, 0); + gtk_object_class_add_signals (object_class, e_text_signals, E_TEXT_LAST_SIGNAL); @@ -270,6 +279,7 @@ e_text_class_init (ETextClass *klass) klass->changed = NULL; + klass->activate = NULL; object_class->destroy = e_text_destroy; object_class->set_arg = e_text_set_arg; @@ -2786,6 +2796,7 @@ e_text_command(ETextEventProcessor *tep, ETextEventProcessorCommand *command, gp e_text_get_selection (text, GDK_SELECTION_PRIMARY, command->time); break; case E_TEP_ACTIVATE: + gtk_signal_emit (GTK_OBJECT (text), e_text_signals[E_TEXT_ACTIVATE]); if (text->timer) { g_timer_reset(text->timer); } diff --git a/widgets/text/e-text.h b/widgets/text/e-text.h index 45a7de404b..6409ede6dc 100644 --- a/widgets/text/e-text.h +++ b/widgets/text/e-text.h @@ -202,6 +202,7 @@ struct _ETextClass { GnomeCanvasItemClass parent_class; void (* changed) (EText *text); + void (* activate) (EText *text); }; |