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
This commit is contained in:
committed by
Chris Lahey
parent
fe9d3ea8fa
commit
0dabeb5908
@@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
2000-05-06 Chris Toshok <toshok@helixcode.com>
|
||||
|
||||
* configure.in: Added new Directories section for the default_user.
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -202,6 +202,7 @@ struct _ETextClass {
|
||||
GnomeCanvasItemClass parent_class;
|
||||
|
||||
void (* changed) (EText *text);
|
||||
void (* activate) (EText *text);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -202,6 +202,7 @@ struct _ETextClass {
|
||||
GnomeCanvasItemClass parent_class;
|
||||
|
||||
void (* changed) (EText *text);
|
||||
void (* activate) (EText *text);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user