From 042704ddd3f26ef3becbe000547564127694c069 Mon Sep 17 00:00:00 2001 From: Gediminas Paulauskas Date: Mon, 2 Apr 2001 03:59:11 +0000 Subject: Blessed by Ettore. Guided by Jacub Stener's mail, where he explaned which icons were renamed or added, I added a bunch of new icons to menus, fixed renamed ones. Changed Trash and Executive summary folder type icons. Fixed art/Makefile.am for these changes. Also, pulled icon cache from mailer and moved it to e-util/e-gui-utils.h, made all components and dialogs use cache and not load pixmaps every time. Accidentally got a couple of includes fix in, but they won't break anything. svn path=/trunk/; revision=9092 --- addressbook/ChangeLog | 7 ++++ addressbook/contact-editor/contact-editor.glade | 2 +- addressbook/gui/component/addressbook.c | 47 +++++++--------------- .../gui/contact-editor/contact-editor.glade | 2 +- 4 files changed, 24 insertions(+), 34 deletions(-) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 57ad3c492b..0b50538b45 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,10 @@ +2001-04-01 Gediminas Paulauskas + + * contact-editor/contact-editor.glade: changed icon to + evolution-contacts-plain.png. + * gui/component/addressbook.c: use new pixmap cache. Added icon for new + contact, print, print preview, changed filenames of renamed icons. + 2001-03-31 Jon Trowbridge * gui/component/select-names/e-select-names.c diff --git a/addressbook/contact-editor/contact-editor.glade b/addressbook/contact-editor/contact-editor.glade index 30f7feb1a5..c6afe583f5 100644 --- a/addressbook/contact-editor/contact-editor.glade +++ b/addressbook/contact-editor/contact-editor.glade @@ -1616,7 +1616,7 @@ custom5 True e_create_image_widget - evolution-contacts.png + evolution-contacts-plain.png 0 0 diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index 8447ac68c1..f165217f14 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -21,16 +21,17 @@ #include #include -#include -#include +#include "select-names/e-select-names.h" +#include "select-names/e-select-names-manager.h" +#include "e-util/e-gui-utils.h" #include "e-contact-editor.h" #include "e-contact-save-as.h" #include "addressbook-config.h" #include "addressbook.h" #include "addressbook/gui/search/e-addressbook-search-dialog.h" #include "addressbook/gui/widgets/e-addressbook-view.h" -#include +#include "addressbook/printing/e-contact-print.h" #include #include @@ -290,36 +291,18 @@ BonoboUIVerb verbs [] = { BONOBO_UI_VERB_END }; -static void -set_pixmap (BonoboUIComponent *uic, - const char *xml_path, - const char *icon) -{ - char *path; - GdkPixbuf *pixbuf; - - path = g_concat_dir_and_file (EVOLUTION_DATADIR "/images/evolution", icon); - - pixbuf = gdk_pixbuf_new_from_file (path); - g_return_if_fail (pixbuf != NULL); - - bonobo_ui_util_set_pixbuf (uic, xml_path, pixbuf); - - gdk_pixbuf_unref (pixbuf); +static EPixmap pixmaps [] = { + E_PIXMAP ("/menu/File/New/NewFirstItem/New", "evolution-contacts-mini.png"), + E_PIXMAP ("/menu/File/Print/Print", "print.xpm"), + E_PIXMAP ("/menu/File/Print/Print Preview", "print-preview.xpm"), + E_PIXMAP ("/menu/Tools/Component/AddressbookConfig", "configure_16_addressbook.xpm"), - g_free (path); -} - -static void -update_pixmaps (BonoboUIComponent *uic) -{ -/* set_pixmap (uic, "/menu/File/Print/Print", "16_print.xpm"); FIXME it doesn't seem to work */ - set_pixmap (uic, "/menu/Tools/Component/AddressbookConfig", "16_configure_addressbook.xpm"); + E_PIXMAP ("/Toolbar/View All", "all_contacts.xpm"), + E_PIXMAP ("/Toolbar/Find", "find_contact.xpm"), + E_PIXMAP ("/Toolbar/New", "new_contact.xpm"), - set_pixmap (uic, "/Toolbar/View All", "24_all_contacts.xpm"); - set_pixmap (uic, "/Toolbar/Find", "24_find_contact.xpm"); - set_pixmap (uic, "/Toolbar/New", "new_contact.xpm"); -} + E_PIXMAP_END +}; static void control_activate (BonoboControl *control, @@ -345,7 +328,7 @@ control_activate (BonoboControl *control, update_view_type (view); - update_pixmaps (uic); + e_pixmaps_update (uic, pixmaps); bonobo_ui_component_thaw (uic, NULL); } diff --git a/addressbook/gui/contact-editor/contact-editor.glade b/addressbook/gui/contact-editor/contact-editor.glade index 30f7feb1a5..c6afe583f5 100644 --- a/addressbook/gui/contact-editor/contact-editor.glade +++ b/addressbook/gui/contact-editor/contact-editor.glade @@ -1616,7 +1616,7 @@ custom5 True e_create_image_widget - evolution-contacts.png + evolution-contacts-plain.png 0 0 -- cgit v1.2.3