From a4e552d62748ca43a43c23032534b71cc2b1e842 Mon Sep 17 00:00:00 2001 From: Sivaiah Nallagatla Date: Tue, 18 Jan 2005 06:32:04 +0000 Subject: show "other" when email does not carry "TYPE" (fill_in_email) : pass 2005-01-17 Sivaiah Nallagatla * gui/contact-editor/e-contact-editor.c (fill_in_email_record) : show "other" when email does not carry "TYPE" (fill_in_email) : pass deafult email types instead of -1 when clearing fields Fixes #70922 svn path=/trunk/; revision=28427 --- addressbook/ChangeLog | 10 ++++++++++ addressbook/gui/contact-editor/e-contact-editor.c | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 28a6388109..6af6d0fc01 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,13 @@ +2005-01-17 Sivaiah Nallagatla + + * gui/contact-editor/e-contact-editor.c + (fill_in_email_record) : show "other" when email + does not carry "TYPE" + (fill_in_email) : pass deafult email + types instead of -1 when clearing fields + + Fixes #70922 + 2005-01-17 Hao Sheng * gui/contact-editor/contact-editor.glade: diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index 22b9919535..61e3690ce0 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -684,7 +684,7 @@ fill_in_email_record (EContactEditor *editor, gint record, const gchar *address, g_free (widget_name); set_option_menu_history (editor, GTK_OPTION_MENU (location_option_menu), - location >= 0 ? location : email_default [record - 1]); + location >= 0 ? location : email_default [2]); set_entry_text (editor, GTK_ENTRY (email_entry), address ? address : ""); } @@ -885,7 +885,7 @@ fill_in_email (EContactEditor *editor) /* Clear */ for (record_n = 1; record_n <= EMAIL_SLOTS; record_n++) { - fill_in_email_record (editor, record_n, NULL, -1); + fill_in_email_record (editor, record_n, NULL, email_default [record_n - 1]); } /* Fill in */ -- cgit v1.2.3