aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component
diff options
context:
space:
mode:
authorJP Rosevear <jpr@novell.com>2004-11-26 23:51:28 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-11-26 23:51:28 +0800
commitbb4883ffd07c1cb088c816b62faaf5e540ddfbd8 (patch)
treec61acf18063d13227ad6b2d3f6fe09114325fbb4 /addressbook/gui/component
parentba0bc7dff09ade6b8014183c44c4c44b42ed1396 (diff)
downloadgsoc2013-evolution-bb4883ffd07c1cb088c816b62faaf5e540ddfbd8.tar.gz
gsoc2013-evolution-bb4883ffd07c1cb088c816b62faaf5e540ddfbd8.tar.zst
gsoc2013-evolution-bb4883ffd07c1cb088c816b62faaf5e540ddfbd8.zip
get image directly from icon factory
2004-11-26 JP Rosevear <jpr@novell.com> * 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
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r--addressbook/gui/component/select-names/e-select-names-popup.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names-popup.c b/addressbook/gui/component/select-names/e-select-names-popup.c
index 8251ed4ea1..9cb95e42e5 100644
--- a/addressbook/gui/component/select-names/e-select-names-popup.c
+++ b/addressbook/gui/component/select-names/e-select-names-popup.c
@@ -192,7 +192,6 @@ toggle_html_mail_cb (GtkWidget *w, gpointer user_data)
static void
populate_popup_contact (GtkWidget *pop, gboolean list, PopupInfo *info)
{
- GdkPixbuf *pixbuf;
GtkWidget *image;
EContact *contact;
GtkWidget *menuitem;
@@ -291,9 +290,7 @@ populate_popup_contact (GtkWidget *pop, gboolean list, PopupInfo *info)
gtk_widget_show (menuitem);
gtk_menu_shell_prepend (GTK_MENU_SHELL (pop), menuitem);
- pixbuf = e_icon_factory_get_icon (list ? LIST_ICON_NAME : CONTACT_ICON_NAME, E_ICON_SIZE_MENU);
- image = gtk_image_new_from_pixbuf (pixbuf);
- g_object_unref (pixbuf);
+ image = e_icon_factory_get_image (list ? LIST_ICON_NAME : CONTACT_ICON_NAME, E_ICON_SIZE_MENU);
gtk_widget_show (image);
menuitem = gtk_image_menu_item_new_with_label (e_destination_get_name (info->dest));
gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (menuitem),