diff options
author | Hans Petter Jansson <hpj@ximian.com> | 2003-12-17 07:29:21 +0800 |
---|---|---|
committer | Hans Petter <hansp@src.gnome.org> | 2003-12-17 07:29:21 +0800 |
commit | c13a0defa3f0214e8d78b9f9b16a9c8b2f22ac32 (patch) | |
tree | 87a1196954ecbe01328d23afb23e4c036634ebdd /addressbook/gui/contact-editor/e-contact-editor.c | |
parent | db7a74c0b7276ea71c45d029210112a92ce33d7a (diff) | |
download | gsoc2013-evolution-c13a0defa3f0214e8d78b9f9b16a9c8b2f22ac32.tar gsoc2013-evolution-c13a0defa3f0214e8d78b9f9b16a9c8b2f22ac32.tar.gz gsoc2013-evolution-c13a0defa3f0214e8d78b9f9b16a9c8b2f22ac32.tar.bz2 gsoc2013-evolution-c13a0defa3f0214e8d78b9f9b16a9c8b2f22ac32.tar.lz gsoc2013-evolution-c13a0defa3f0214e8d78b9f9b16a9c8b2f22ac32.tar.xz gsoc2013-evolution-c13a0defa3f0214e8d78b9f9b16a9c8b2f22ac32.tar.zst gsoc2013-evolution-c13a0defa3f0214e8d78b9f9b16a9c8b2f22ac32.zip |
Implement. Creates source selection option menu.
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.
* gui/contact-editor/contact-editor.glade: Add source selection custom
widget.
svn path=/trunk/; revision=23953
Diffstat (limited to 'addressbook/gui/contact-editor/e-contact-editor.c')
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-editor.c | 24 |
1 files changed, 24 insertions, 0 deletions
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) { |