aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
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
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')
-rw-r--r--addressbook/ChangeLog8
-rw-r--r--addressbook/gui/component/select-names/e-select-names-popup.c5
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor-im.c11
3 files changed, 10 insertions, 14 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 55804d797a..bd2f7ddf78 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,11 @@
+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
+
2004-11-25 Hao Sheng <hao.sheng@sun.com>
* gui/contact-editor/contact-editor.glade:
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),
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);