From cc0c43058c4461960754dc09d19aa1f39beeea75 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Thu, 13 Mar 2003 22:47:58 +0000 Subject: use set_entry_changed_signal_email for the email entry so the email gets 2003-03-13 Chris Toshok * 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 --- addressbook/ChangeLog | 8 ++++++++ addressbook/gui/contact-editor/e-contact-editor.c | 11 ++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index b999a824b9..c044f24943 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,11 @@ +2003-03-13 Chris Toshok + + * 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. + 2003-03-12 Chris Toshok [ fixes bug #20210 ] 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 @@ -621,6 +621,15 @@ set_entry_changed_signal_phone(EContactEditor *editor, char *id) G_CALLBACK (phone_entry_changed), editor); } +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) { @@ -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)) { -- cgit