diff options
-rw-r--r-- | addressbook/ChangeLog | 5 | ||||
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-editor.c | 14 |
2 files changed, 19 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 273b26445e..8b6e1b0f79 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,5 +1,10 @@ 2003-12-16 Hans Petter Jansson <hpj@ximian.com> + * gui/contact-editor/e-contact-editor.c (set_source_field): Implement. + Makes the source menu reflect the source for the current book. + +2003-12-16 Hans Petter Jansson <hpj@ximian.com> + * gui/contact-editor/e-contact-editor.c (e_contact_editor_create_source_option_menu): Implement. Creates source selection option menu. diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index d29f700d1b..517d21b9bb 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -55,6 +55,7 @@ #include "e-util/e-gui-utils.h" #include "widgets/misc/e-dateedit.h" #include "widgets/misc/e-url-entry.h" +#include "widgets/misc/e-source-option-menu.h" #include "shell/evolution-shell-component-utils.h" #include "eab-contact-merging.h" @@ -2035,6 +2036,18 @@ set_phone_field(EContactEditor *editor, GtkWidget *entry, const char *phone_numb } static void +set_source_field (EContactEditor *editor) +{ + GtkWidget *source_menu; + ESource *source; + + source_menu = glade_xml_get_widget (editor->gui, "source-option-menu-source"); + source = e_book_get_source (editor->book); + + e_source_option_menu_select (E_SOURCE_OPTION_MENU (source_menu), source); +} + +static void set_fields(EContactEditor *editor) { EContactAddress *address; @@ -2096,6 +2109,7 @@ set_fields(EContactEditor *editor) } set_address_field(editor, i); + set_source_field (editor); } static void |