aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-05-08 08:18:20 +0800
committerChris Lahey <clahey@src.gnome.org>2000-05-08 08:18:20 +0800
commit0dabeb5908d978a1674fb276d5408e09a4ef4d4d (patch)
tree511c288e0e8f4d772e486781822fa674489c24d8
parentfe9d3ea8fa7ef4d4385edd93bf19de46d218135e (diff)
downloadgsoc2013-evolution-0dabeb5908d978a1674fb276d5408e09a4ef4d4d.tar
gsoc2013-evolution-0dabeb5908d978a1674fb276d5408e09a4ef4d4d.tar.gz
gsoc2013-evolution-0dabeb5908d978a1674fb276d5408e09a4ef4d4d.tar.bz2
gsoc2013-evolution-0dabeb5908d978a1674fb276d5408e09a4ef4d4d.tar.lz
gsoc2013-evolution-0dabeb5908d978a1674fb276d5408e09a4ef4d4d.tar.xz
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
-rw-r--r--ChangeLog5
-rw-r--r--widgets/e-text/e-text.c11
-rw-r--r--widgets/e-text/e-text.h1
-rw-r--r--widgets/text/e-text.c11
-rw-r--r--widgets/text/e-text.h1
5 files changed, 29 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b65fc5745f..19dc892109 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
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);
};