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/em-format-html-display.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/em-format-html-display.c')
-rw-r--r-- | mail/em-format-html-display.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c index a621dd7254..5d58bf63b6 100644 --- a/mail/em-format-html-display.c +++ b/mail/em-format-html-display.c @@ -833,7 +833,6 @@ static gboolean efhd_xpkcs7mime_button(EMFormatHTML *efh, GtkHTMLEmbedded *eb, EMFormatHTMLPObject *pobject) { GtkWidget *icon, *button; - GdkPixbuf *pixbuf; struct _smime_pobject *po = (struct _smime_pobject *)pobject; const char *name; @@ -843,10 +842,7 @@ efhd_xpkcs7mime_button(EMFormatHTML *efh, GtkHTMLEmbedded *eb, EMFormatHTMLPObje else name = smime_encrypt_table[po->valid->encrypt.status].icon; - pixbuf = e_icon_factory_get_icon (name, E_ICON_SIZE_LARGE_TOOLBAR); - - icon = gtk_image_new_from_pixbuf (pixbuf); - g_object_unref(pixbuf); + icon = e_icon_factory_get_image (name, E_ICON_SIZE_LARGE_TOOLBAR); gtk_widget_show(icon); button = gtk_button_new(); |