aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/contact-editor/e-contact-editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/contact-editor/e-contact-editor.c')
-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)) {