From c13a0defa3f0214e8d78b9f9b16a9c8b2f22ac32 Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Tue, 16 Dec 2003 23:29:21 +0000 Subject: Implement. Creates source selection option menu. 2003-12-16 Hans Petter Jansson * gui/contact-editor/e-contact-editor.c (e_contact_editor_create_source_option_menu): Implement. Creates source selection option menu. * gui/contact-editor/contact-editor.glade: Add source selection custom widget. svn path=/trunk/; revision=23953 --- addressbook/ChangeLog | 9 +++++ .../gui/contact-editor/contact-editor.glade | 42 ++++++++++++++++++++++ addressbook/gui/contact-editor/e-contact-editor.c | 24 +++++++++++++ 3 files changed, 75 insertions(+) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index d1f12be115..273b26445e 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,12 @@ +2003-12-16 Hans Petter Jansson + + * gui/contact-editor/e-contact-editor.c + (e_contact_editor_create_source_option_menu): Implement. Creates + source selection option menu. + + * gui/contact-editor/contact-editor.glade: Add source selection custom + widget. + 2003-12-16 Hans Petter Jansson * gui/widgets/e-addressbook-table-adapter.c diff --git a/addressbook/gui/contact-editor/contact-editor.glade b/addressbook/gui/contact-editor/contact-editor.glade index 10b05c27b4..3fd8cd922c 100644 --- a/addressbook/gui/contact-editor/contact-editor.glade +++ b/addressbook/gui/contact-editor/contact-editor.glade @@ -1521,6 +1521,48 @@ fill + + + + True + e_contact_editor_create_source_option_menu + 0 + 0 + Tue, 16 Dec 2003 23:18:06 GMT + + + 7 + 8 + 12 + 13 + fill + fill + + + + + + True + Addressbook: + False + False + GTK_JUSTIFY_LEFT + False + False + 1 + 0.5 + 0 + 0 + + + 5 + 7 + 12 + 13 + fill + + + False diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index c9f96c4ab0..d29f700d1b 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -2661,6 +2661,30 @@ e_contact_editor_create_web(gchar *name, return widget; } +GtkWidget * +e_contact_editor_create_source_option_menu (gchar *name, + gchar *string1, gchar *string2, + gint int1, gint int2); + +GtkWidget * +e_contact_editor_create_source_option_menu (gchar *name, + gchar *string1, gchar *string2, + gint int1, gint int2) +{ + GtkWidget *menu; + GConfClient *gconf_client; + ESourceList *source_list; + + gconf_client = gconf_client_get_default (); + source_list = e_source_list_new_for_gconf (gconf_client, "/apps/evolution/addressbook/sources"); + + menu = e_source_option_menu_new (source_list); + g_object_unref (source_list); + + gtk_widget_show (menu); + return menu; +} + static void enable_widget (GtkWidget *widget, gboolean enabled) { -- cgit v1.2.3