diff options
author | JP Rosevear <jpr@novell.com> | 2004-11-26 23:01:12 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2004-11-26 23:01:12 +0800 |
commit | f484ce17b3651e8d741e789621f59baef1652974 (patch) | |
tree | c4481ba135dcb341dbeef4e8b5284a1589fe9cd6 /mail/mail-send-recv.c | |
parent | 43cbcd8b63c9f876d78daf14883134080b4cc937 (diff) | |
download | gsoc2013-evolution-f484ce17b3651e8d741e789621f59baef1652974.tar.gz gsoc2013-evolution-f484ce17b3651e8d741e789621f59baef1652974.tar.zst gsoc2013-evolution-f484ce17b3651e8d741e789621f59baef1652974.zip |
get image widget directly from icon factory
2004-11-26 JP Rosevear <jpr@novell.com>
* em-format-html-display.c (efhd_xpkcs7mime_button): get image
widget directly from icon factory
* mail-send-recv.c (build_dialog): ditto
svn path=/trunk/; revision=27998
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r-- | mail/mail-send-recv.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c index 4a3e182927..f140e9113c 100644 --- a/mail/mail-send-recv.c +++ b/mail/mail-send-recv.c @@ -315,7 +315,6 @@ build_dialog (EAccountList *accounts, CamelFolder *outbox, const char *destinati char *pretty_url; EAccount *account; EIterator *iter; - GdkPixbuf *pixbuf; GList *icon_list; gd = (GtkDialog *)(send_recv_dialog = gtk_dialog_new_with_buttons(_("Send & Receive Mail"), NULL, GTK_DIALOG_NO_SEPARATOR, NULL)); @@ -398,9 +397,7 @@ build_dialog (EAccountList *accounts, CamelFolder *outbox, const char *destinati } else if (info->timeout_id == 0) info->timeout_id = g_timeout_add (STATUS_TIMEOUT, operation_status_timeout, info); - pixbuf = e_icon_factory_get_icon ("stock_mail-receive", E_ICON_SIZE_LARGE_TOOLBAR); - recv_icon = gtk_image_new_from_pixbuf (pixbuf); - gdk_pixbuf_unref (pixbuf); + recv_icon = e_icon_factory_get_image ("stock_mail-receive", E_ICON_SIZE_LARGE_TOOLBAR); pretty_url = format_url (source->url); label = (GtkLabel *)gtk_label_new (pretty_url); @@ -453,9 +450,7 @@ build_dialog (EAccountList *accounts, CamelFolder *outbox, const char *destinati } else if (info->timeout_id == 0) info->timeout_id = g_timeout_add (STATUS_TIMEOUT, operation_status_timeout, info); - pixbuf = e_icon_factory_get_icon ("stock_mail-send", E_ICON_SIZE_LARGE_TOOLBAR); - send_icon = gtk_image_new_from_pixbuf (pixbuf); - gdk_pixbuf_unref (pixbuf); + send_icon = e_icon_factory_get_image ("stock_mail-send", E_ICON_SIZE_LARGE_TOOLBAR); pretty_url = format_url (destination); label = (GtkLabel *)gtk_label_new (pretty_url); |