aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-12-17 08:52:18 +0800
committerHans Petter <hansp@src.gnome.org>2003-12-17 08:52:18 +0800
commite12d64b4eb485713e28eb1b5da075343fc715ea5 (patch)
tree4fd9795c9405dfe05016ea38fcd9e19e03206eda /addressbook
parenta3b04be4f0788104ba7f7e12abff000f573ec439 (diff)
downloadgsoc2013-evolution-e12d64b4eb485713e28eb1b5da075343fc715ea5.tar.gz
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')
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c14
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