diff options
author | Gediminas Paulauskas <menesis@src.gnome.org> | 2001-04-02 11:59:11 +0800 |
---|---|---|
committer | Gediminas Paulauskas <menesis@src.gnome.org> | 2001-04-02 11:59:11 +0800 |
commit | 042704ddd3f26ef3becbe000547564127694c069 (patch) | |
tree | da06292a7ffea58469c87ef330045163b2003d89 /addressbook | |
parent | 9fc545eb953a65888f3ae78703e1500d8ad9f1be (diff) | |
download | gsoc2013-evolution-042704ddd3f26ef3becbe000547564127694c069.tar.gz gsoc2013-evolution-042704ddd3f26ef3becbe000547564127694c069.tar.zst gsoc2013-evolution-042704ddd3f26ef3becbe000547564127694c069.zip |
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
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 7 | ||||
-rw-r--r-- | addressbook/contact-editor/contact-editor.glade | 2 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook.c | 47 | ||||
-rw-r--r-- | addressbook/gui/contact-editor/contact-editor.glade | 2 |
4 files changed, 24 insertions, 34 deletions
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 <menesis@delfi.lt> + + * 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 <trow@ximian.com> * 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 @@ <name>custom5</name> <cxx_use_heap>True</cxx_use_heap> <creation_function>e_create_image_widget</creation_function> - <string1>evolution-contacts.png</string1> + <string1>evolution-contacts-plain.png</string1> <string2></string2> <int1>0</int1> <int2>0</int2> 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 <gal/util/e-util.h> #include <gal/widgets/e-unicode.h> -#include <select-names/e-select-names.h> -#include <select-names/e-select-names-manager.h> +#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 <addressbook/printing/e-contact-print.h> +#include "addressbook/printing/e-contact-print.h" #include <ebook/e-book.h> #include <widgets/misc/e-search-bar.h> @@ -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 @@ <name>custom5</name> <cxx_use_heap>True</cxx_use_heap> <creation_function>e_create_image_widget</creation_function> - <string1>evolution-contacts.png</string1> + <string1>evolution-contacts-plain.png</string1> <string2></string2> <int1>0</int1> <int2>0</int2> |