diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-05-24 23:06:13 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-25 00:25:46 +0800 |
commit | 7702ac84d7e02093881d5a139398b1615e4070ac (patch) | |
tree | d823fa7106c9d807423b3c7ccffec07ba2e766fb | |
parent | c0b6183c73fc170913bba39e65794af3f596e30e (diff) | |
download | gsoc2013-evolution-7702ac84d7e02093881d5a139398b1615e4070ac.tar gsoc2013-evolution-7702ac84d7e02093881d5a139398b1615e4070ac.tar.gz gsoc2013-evolution-7702ac84d7e02093881d5a139398b1615e4070ac.tar.bz2 gsoc2013-evolution-7702ac84d7e02093881d5a139398b1615e4070ac.tar.lz gsoc2013-evolution-7702ac84d7e02093881d5a139398b1615e4070ac.tar.xz gsoc2013-evolution-7702ac84d7e02093881d5a139398b1615e4070ac.tar.zst gsoc2013-evolution-7702ac84d7e02093881d5a139398b1615e4070ac.zip |
Prefer icons from GTK's cache instead of our own.
-rw-r--r-- | composer/e-composer-private.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/composer/e-composer-private.c b/composer/e-composer-private.c index bc273cd495..fffd18ac70 100644 --- a/composer/e-composer-private.c +++ b/composer/e-composer-private.c @@ -17,7 +17,6 @@ #include "e-composer-private.h" #include "e-util/e-util-private.h" -#include "e-util/e-icon-factory.h" static void composer_setup_charset_menu (EMsgComposer *composer) @@ -149,7 +148,8 @@ e_composer_private_init (EMsgComposer *composer) tmp_box = gtk_hbox_new (FALSE, 0); tmp = gtk_hbox_new (FALSE, 0); - tmp1 = gtk_image_new_from_pixbuf (e_icon_factory_get_icon("mail-send", E_ICON_SIZE_BUTTON)); + tmp1 = gtk_image_new_from_icon_name ( + "mail-send", GTK_ICON_SIZE_BUTTON); gtk_box_pack_start ((GtkBox *)tmp, tmp1, FALSE, FALSE, 0); tmp1 = gtk_label_new_with_mnemonic (_("S_end")); gtk_box_pack_start ((GtkBox *)tmp, tmp1, FALSE, FALSE, 6); @@ -165,7 +165,8 @@ e_composer_private_init (EMsgComposer *composer) path = "/main-toolbar/pre-main-toolbar/save-draft"; send_widget = gtk_ui_manager_get_widget (ui_manager, path); tmp = gtk_hbox_new (FALSE, 0); - tmp1 = gtk_image_new_from_pixbuf (e_icon_factory_get_icon(GTK_STOCK_SAVE, E_ICON_SIZE_BUTTON)); + tmp1 = gtk_image_new_from_stock ( + GTK_STOCK_SAVE, GTK_ICON_SIZE_BUTTON); gtk_box_pack_start ((GtkBox *)tmp, tmp1, FALSE, FALSE, 0); tmp1 = gtk_label_new_with_mnemonic (_("Save draft")); gtk_box_pack_start ((GtkBox *)tmp, tmp1, FALSE, FALSE, 3); @@ -181,7 +182,8 @@ e_composer_private_init (EMsgComposer *composer) path = "/main-toolbar/pre-main-toolbar/attach"; send_widget = gtk_ui_manager_get_widget (ui_manager, path); tmp = gtk_hbox_new (FALSE, 0); - tmp1 = gtk_image_new_from_pixbuf (e_icon_factory_get_icon("gtk-add", E_ICON_SIZE_BUTTON)); + tmp1 = gtk_image_new_from_stock ( + GTK_STOCK_ADD, GTK_ICON_SIZE_BUTTON); gtk_box_pack_start ((GtkBox *)tmp, tmp1, FALSE, FALSE, 0); tmp1 = gtk_label_new_with_mnemonic (_("Add attachment")); gtk_box_pack_start ((GtkBox *)tmp, tmp1, FALSE, FALSE, 3); |