aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2003-03-14 06:47:58 +0800
committerChris Toshok <toshok@src.gnome.org>2003-03-14 06:47:58 +0800
commitcc0c43058c4461960754dc09d19aa1f39beeea75 (patch)
treef0822c53688c805e775ef9be75caad965e0c4a32 /addressbook/gui
parent959f74d6c632ceb8746ebec018b6e4ca828ee0ff (diff)
downloadgsoc2013-evolution-cc0c43058c4461960754dc09d19aa1f39beeea75.tar.gz
gsoc2013-evolution-cc0c43058c4461960754dc09d19aa1f39beeea75.tar.zst
gsoc2013-evolution-cc0c43058c4461960754dc09d19aa1f39beeea75.zip
use set_entry_changed_signal_email for the email entry so the email gets
2003-03-13 Chris Toshok <toshok@ximian.com> * gui/contact-editor/e-contact-editor.c (set_entry_changed_signals): use set_entry_changed_signal_email for the email entry so the email gets saved out. (set_entry_changed_signal_email): new function, analogous to set_entry_changed_signal_phone, but for email. svn path=/trunk/; revision=20282
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c
index d3b6301e11..51f417b63d 100644
--- a/addressbook/gui/contact-editor/e-contact-editor.c
+++ b/addressbook/gui/contact-editor/e-contact-editor.c
@@ -622,6 +622,15 @@ set_entry_changed_signal_phone(EContactEditor *editor, char *id)
}
static void
+set_entry_changed_signal_email(EContactEditor *editor, char *id)
+{
+ GtkWidget *widget = glade_xml_get_widget(editor->gui, id);
+ if (widget && GTK_IS_ENTRY(widget))
+ g_signal_connect(widget, "changed",
+ G_CALLBACK (email_entry_changed), editor);
+}
+
+static void
widget_changed (GtkWidget *widget, EContactEditor *editor)
{
if (!editor->editable) {
@@ -664,7 +673,7 @@ set_entry_changed_signals(EContactEditor *editor)
set_entry_changed_signal_phone(editor, "entry-phone3");
set_entry_changed_signal_phone(editor, "entry-phone4");
- set_entry_changed_signal_field(editor, "entry-email1");
+ set_entry_changed_signal_email(editor, "entry-email1");
widget = glade_xml_get_widget(editor->gui, "text-address");
if (widget && GTK_IS_TEXT_VIEW(widget)) {