From 43cbcd8b63c9f876d78daf14883134080b4cc937 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 26 Nov 2004 14:57:49 +0000 Subject: get the image directly from the icon factory 2004-11-26 JP Rosevear * e-gui-utils.c (e_create_image_widget): get the image directly from the icon factory * e-config.c: insert debug defines so we can turn spew on and off * e-event.c: insert debug defines so we can turn spew on and off * e-menu.c: insert debug defines so we can turn spew on and off * e-plugin.c: insert debug defines and set to off for now * e-popup.c: insert debug defines so we can turn spew on and off (e_popup_create_menu): get the image directly from the icon factory svn path=/trunk/; revision=27997 --- e-util/e-gui-utils.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'e-util/e-gui-utils.c') diff --git a/e-util/e-gui-utils.c b/e-util/e-gui-utils.c index cb9f57e5c1..3e8849fe93 100644 --- a/e-util/e-gui-utils.c +++ b/e-util/e-gui-utils.c @@ -40,10 +40,7 @@ GtkWidget *e_create_image_widget(gchar *name, GtkWidget *w; if (string1) { - pixbuf = e_icon_factory_get_icon (string1, E_ICON_SIZE_DIALOG); - - w = gtk_image_new_from_pixbuf (pixbuf); - g_object_unref (pixbuf); + w = e_icon_factory_get_image (string1, E_ICON_SIZE_DIALOG); gtk_misc_set_alignment (GTK_MISC (w), 0.5, 0.5); -- cgit v1.2.3