diff options
author | Hans Petter Jansson <hpj@ximian.com> | 2003-12-17 08:52:18 +0800 |
---|---|---|
committer | Hans Petter <hansp@src.gnome.org> | 2003-12-17 08:52:18 +0800 |
commit | e12d64b4eb485713e28eb1b5da075343fc715ea5 (patch) | |
tree | 4fd9795c9405dfe05016ea38fcd9e19e03206eda /addressbook/gui/contact-editor | |
parent | a3b04be4f0788104ba7f7e12abff000f573ec439 (diff) | |
download | gsoc2013-evolution-e12d64b4eb485713e28eb1b5da075343fc715ea5.tar gsoc2013-evolution-e12d64b4eb485713e28eb1b5da075343fc715ea5.tar.gz gsoc2013-evolution-e12d64b4eb485713e28eb1b5da075343fc715ea5.tar.bz2 gsoc2013-evolution-e12d64b4eb485713e28eb1b5da075343fc715ea5.tar.lz gsoc2013-evolution-e12d64b4eb485713e28eb1b5da075343fc715ea5.tar.xz gsoc2013-evolution-e12d64b4eb485713e28eb1b5da075343fc715ea5.tar.zst gsoc2013-evolution-e12d64b4eb485713e28eb1b5da075343fc715ea5.zip |
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 (set_source_field): Implement.
Makes the source menu reflect the source for the current book.
svn path=/trunk/; revision=23955
Diffstat (limited to 'addressbook/gui/contact-editor')
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-editor.c | 14 |
1 files changed, 14 insertions, 0 deletions
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 |