diff options
author | Rodney Dawes <dobey@ximian.com> | 2004-04-19 23:19:05 +0800 |
---|---|---|
committer | Rodney Dawes <dobey@src.gnome.org> | 2004-04-19 23:19:05 +0800 |
commit | c13ea522069443479b5370d6bb0084b281272ef2 (patch) | |
tree | 39a68c387cffde755433bbc0db48d7a44d9cb54a /addressbook/gui/contact-list-editor | |
parent | f4b4be936edef388577024f565b2f1643d4bd2f9 (diff) | |
download | gsoc2013-evolution-c13ea522069443479b5370d6bb0084b281272ef2.tar gsoc2013-evolution-c13ea522069443479b5370d6bb0084b281272ef2.tar.gz gsoc2013-evolution-c13ea522069443479b5370d6bb0084b281272ef2.tar.bz2 gsoc2013-evolution-c13ea522069443479b5370d6bb0084b281272ef2.tar.lz gsoc2013-evolution-c13ea522069443479b5370d6bb0084b281272ef2.tar.xz gsoc2013-evolution-c13ea522069443479b5370d6bb0084b281272ef2.tar.zst gsoc2013-evolution-c13ea522069443479b5370d6bb0084b281272ef2.zip |
Set the default image for the contact photo to be the stock_person image
2004-04-19 Rodney Dawes <dobey@ximian.com>
* gui/contact-editor/contact-editor.glade: Set the default image for
the contact photo to be the stock_person image in the icon theme
2004-04-19 Michael Terry <mike@mterry.name>
* gui/component/GNOME_Evolution_Addressbook.server.in.in:
* gui/component/addressbook-component.c:
* gui/component/addressbook-view.c:
* gui/component/select-names/e-select-names-popup.c:
* gui/contact-editor/e-contact-editor-address.c:
* gui/contact-editor/e-contact-editor-fullname.c:
* gui/contact-editor/e-contact-editor-im.c:
* gui/contact-list-editor/contact-list-editor.glade:
* gui/contact-list-editor/e-contact-list-editor.c:
* gui/merging/eab-contact-commit-duplicate-detected.glade:
* gui/merging/eab-contact-duplicate-detected.glade:
* gui/widgets/e-minicard.c:
* gui/widgets/eab-contact-display.c:
* gui/widgets/eab-gui-util.c: Update the addressbook to use the icon
theme via the EIconFactory object in e-util
svn path=/trunk/; revision=25514
Diffstat (limited to 'addressbook/gui/contact-list-editor')
-rw-r--r-- | addressbook/gui/contact-list-editor/contact-list-editor.glade | 2 | ||||
-rw-r--r-- | addressbook/gui/contact-list-editor/e-contact-list-editor.c | 30 |
2 files changed, 18 insertions, 14 deletions
diff --git a/addressbook/gui/contact-list-editor/contact-list-editor.glade b/addressbook/gui/contact-list-editor/contact-list-editor.glade index ebe7dcb1d0..c7cdc30226 100644 --- a/addressbook/gui/contact-list-editor/contact-list-editor.glade +++ b/addressbook/gui/contact-list-editor/contact-list-editor.glade @@ -81,7 +81,7 @@ <widget class="Custom" id="list-image"> <property name="visible">True</property> <property name="creation_function">eab_create_image_chooser_widget</property> - <property name="string1">evolution-contacts-plain.png</property> + <property name="string1">stock_addressbook</property> <property name="int1">0</property> <property name="int2">0</property> <property name="last_modification_time">Sat, 23 Jun 2001 05:59:21 GMT</property> diff --git a/addressbook/gui/contact-list-editor/e-contact-list-editor.c b/addressbook/gui/contact-list-editor/e-contact-list-editor.c index 22dccfcb67..17494aeccb 100644 --- a/addressbook/gui/contact-list-editor/e-contact-list-editor.c +++ b/addressbook/gui/contact-list-editor/e-contact-list-editor.c @@ -21,6 +21,7 @@ #include <config.h> #include "e-contact-list-editor.h" +#include <e-util/e-icon-factory.h> #include <string.h> @@ -182,7 +183,7 @@ e_contact_list_editor_init (EContactListEditor *editor) GladeXML *gui; GtkWidget *bonobo_win; BonoboUIContainer *container; - char *icon_path; + GList *icon_list; editor->contact = NULL; editor->changed = FALSE; @@ -278,9 +279,12 @@ e_contact_list_editor_init (EContactListEditor *editor) G_CALLBACK (app_delete_event_cb), editor); /* set the icon */ - icon_path = g_build_filename (EVOLUTION_IMAGESDIR, "contact-list-16.png", NULL); - gnome_window_icon_set_from_file (GTK_WINDOW (editor->app), icon_path); - g_free (icon_path); + icon_list = e_icon_factory_get_icon_list ("stock_contact-list"); + if (icon_list) { + gtk_window_set_icon_list (GTK_WINDOW (editor->app), icon_list); + g_list_foreach (icon_list, (GFunc) g_object_unref, NULL); + g_list_free (icon_list); + } } static void @@ -514,18 +518,18 @@ BonoboUIVerb verbs [] = { }; static EPixmap pixmaps[] = { - E_PIXMAP ("/commands/ContactListEditorSave", "save-16.png"), - E_PIXMAP ("/commands/ContactListEditorSaveClose", "save-16.png"), - E_PIXMAP ("/commands/ContactListEditorSaveAs", "save-as-16.png"), + E_PIXMAP ("/commands/ContactListEditorSave", "stock_save", 16), + E_PIXMAP ("/commands/ContactListEditorSaveClose", "stock_save", 16), + E_PIXMAP ("/commands/ContactListEditorSaveAs", "stock_save_as", 16), - E_PIXMAP ("/commands/ContactListEditorDelete", "evolution-trash-mini.png"), + E_PIXMAP ("/commands/ContactListEditorDelete", "stock_delete", 16), #if 0 /* Envelope printing is disabled for Evolution 1.0. */ - E_PIXMAP ("/commands/ContactListEditorPrint", "print.xpm"), - E_PIXMAP ("/commands/ContactListEditorPrintEnvelope", "print.xpm"), + E_PIXMAP ("/commands/ContactListEditorPrint", "stock_print", 16), + E_PIXMAP ("/commands/ContactListEditorPrintEnvelope", "stock_print", 16), #endif - E_PIXMAP ("/Toolbar/ContactListEditorSaveClose", "buttons/save-24.png"), - E_PIXMAP ("/Toolbar/ContactListEditorDelete", "buttons/delete-message.png"), - E_PIXMAP ("/Toolbar/ContactListEditorPrint", "buttons/print.png"), + E_PIXMAP ("/Toolbar/ContactListEditorSaveClose", "stock_save", 24), + E_PIXMAP ("/Toolbar/ContactListEditorDelete", "stock_delete", 24), + E_PIXMAP ("/Toolbar/ContactListEditorPrint", "stock_print", 24), E_PIXMAP_END }; |