From a005cabc942b4cede3ff02f8f22f779e800f668e Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Thu, 14 Sep 2000 13:51:55 +0000 Subject: Make Tigert's icons work again. svn path=/trunk/; revision=5427 --- mail/ChangeLog | 1 + mail/folder-browser-factory.c | 16 ++++++++-------- ui/evolution-mail.xml | 18 +++++++++--------- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index ea1650e339..8a47dda4a9 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,6 +1,7 @@ 2000-09-14 Michael Meeks * folder-browser-factory.c: move fn to bonobo. + (set_pixmap): update. 2000-09-14 Christopher James Lahey diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c index f9010d8370..22d1166b82 100644 --- a/mail/folder-browser-factory.c +++ b/mail/folder-browser-factory.c @@ -122,21 +122,21 @@ set_pixmap (Bonobo_UIContainer container, const char *xml_path, const char *icon) { -/* - * FIXME: this is broken, and needs fixing - * we probably want just to pass a filename in as filename - * and not to have the mess with gnome_pixmap_file as well. - */ -/* char *path, *parent_path; + char *path, *parent_path; xmlNode *node; + GdkPixbuf *pixbuf; path = g_concat_dir_and_file (EVOLUTION_DATADIR "/images/evolution/buttons", icon); + pixbuf = gdk_pixbuf_new_from_file (path); + g_return_if_fail (pixbuf != NULL); + node = bonobo_ui_container_get_tree (container, xml_path, FALSE, NULL); g_return_if_fail (node != NULL); - bonobo_ui_util_xml_set_pix_fname (node, path); + bonobo_ui_util_xml_set_pixbuf (node, pixbuf); + gdk_pixbuf_unref (pixbuf); parent_path = bonobo_ui_xml_get_parent_path (xml_path); bonobo_ui_component_set_tree (NULL, container, parent_path, node, NULL); @@ -144,7 +144,7 @@ set_pixmap (Bonobo_UIContainer container, xmlFreeNode (node); g_free (parent_path); - g_free (path);*/ + g_free (path); } static void diff --git a/ui/evolution-mail.xml b/ui/evolution-mail.xml index 99aacf929b..116a1ea83a 100644 --- a/ui/evolution-mail.xml +++ b/ui/evolution-mail.xml @@ -124,45 +124,45 @@ + pixtype="pixbuf"/> + pixtype="pixbuf"/> + pixtype="pixbuf"/> + pixtype="pixbuf"/> + pixtype="pixbuf"/> + pixtype="pixbuf"/> + pixtype="pixbuf"/> + pixtype="pixbuf"/> + pixtype="pixbuf"/> \ No newline at end of file -- cgit