diff options
author | Miguel de Icaza <miguel@helixcode.com> | 2000-12-26 16:15:56 +0800 |
---|---|---|
committer | Miguel de Icaza <miguel@src.gnome.org> | 2000-12-26 16:15:56 +0800 |
commit | 68186009b294f8f66d159ce8db2228ed6bba8599 (patch) | |
tree | 40abac332cddf97305122914954cb10dcbee4462 /widgets/text/e-entry.c | |
parent | 05217d5ace4a0e216ea6a0c107224db7e3b55baf (diff) | |
download | gsoc2013-evolution-68186009b294f8f66d159ce8db2228ed6bba8599.tar.gz gsoc2013-evolution-68186009b294f8f66d159ce8db2228ed6bba8599.tar.zst gsoc2013-evolution-68186009b294f8f66d159ce8db2228ed6bba8599.zip |
Connect to the "changed" and "activate" signals on the EText to the proxy
2000-12-26 Miguel de Icaza <miguel@helixcode.com>
* gal/e-text/e-entry.c: Connect to the "changed" and "activate"
signals on the EText to the proxy routines.
(e_entry_proxy_changed): Proxy this to our signals.
(e_entry_proxy_activate): ditto.
svn path=/trunk/; revision=7173
Diffstat (limited to 'widgets/text/e-entry.c')
-rw-r--r-- | widgets/text/e-entry.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/widgets/text/e-entry.c b/widgets/text/e-entry.c index d899af045d..3bd36d7a0d 100644 --- a/widgets/text/e-entry.c +++ b/widgets/text/e-entry.c @@ -112,6 +112,18 @@ canvas_focus_in_event (GtkWidget *widget, GdkEventFocus *focus, EEntry *e_entry) } static void +e_entry_proxy_changed (EText *text, EEntry *ee) +{ + gtk_signal_emit (GTK_OBJECT (ee), e_entry_signals [E_ENTRY_CHANGED]); +} + +static void +e_entry_proxy_activate (EText *text, EEntry *ee) +{ + gtk_signal_emit (GTK_OBJECT (ee), e_entry_signals [E_ENTRY_ACTIVATE]); +} + +static void e_entry_init (GtkObject *object) { EEntry *e_entry = E_ENTRY (object); @@ -134,6 +146,16 @@ e_entry_init (GtkObject *object) gtk_table_attach_defaults(gtk_table, GTK_WIDGET(e_entry->canvas), 0, 1, 0, 1); gtk_widget_show(GTK_WIDGET(e_entry->canvas)); + + /* + * Proxy functions: we proxy the changed and activate signals + * from the item to outselves + */ + gtk_signal_connect (GTK_OBJECT (e_entry->item), "changed", + GTK_SIGNAL_FUNC (e_entry_proxy_changed), e_entry); + gtk_signal_connect (GTK_OBJECT (e_entry->item), "activate", + GTK_SIGNAL_FUNC (e_entry_proxy_activate), e_entry); + } EEntry * |