From bb4883ffd07c1cb088c816b62faaf5e540ddfbd8 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 26 Nov 2004 15:51:28 +0000 Subject: get image directly from icon factory 2004-11-26 JP Rosevear * gui/component/select-names/e-select-names-popup.c (populate_popup_contact): get image directly from icon factory * gui/contact-editor/e-contact-editor-im.c (setup_service_optmenu): ditto svn path=/trunk/; revision=28000 --- addressbook/gui/contact-editor/e-contact-editor-im.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'addressbook/gui/contact-editor') diff --git a/addressbook/gui/contact-editor/e-contact-editor-im.c b/addressbook/gui/contact-editor/e-contact-editor-im.c index b77fefd88b..2c1c89af9a 100644 --- a/addressbook/gui/contact-editor/e-contact-editor-im.c +++ b/addressbook/gui/contact-editor/e-contact-editor-im.c @@ -175,7 +175,6 @@ setup_service_optmenu(EContactEditorIm *editor) GtkWidget *item; GtkWidget *label; GtkWidget *image; - GdkPixbuf *pixbuf; GtkSizeGroup *sg; int i; @@ -196,15 +195,7 @@ setup_service_optmenu(EContactEditorIm *editor) gtk_container_add(GTK_CONTAINER(item), hbox); gtk_widget_show(hbox); - pixbuf = e_icon_factory_get_icon (im_images[i], E_ICON_SIZE_MENU); - - if (pixbuf != NULL) { - image = gtk_image_new_from_pixbuf(pixbuf); - - g_object_unref(G_OBJECT(pixbuf)); - } - else - image = gtk_image_new(); + image = e_icon_factory_get_image (im_images[i], E_ICON_SIZE_MENU); gtk_size_group_add_widget(sg, image); -- cgit v1.2.3