aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-select-file.c
diff options
context:
space:
mode:
authorMichael Terry <mike@mterry.name>2004-04-19 23:20:26 +0800
committerRodney Dawes <dobey@src.gnome.org>2004-04-19 23:20:26 +0800
commitcc309ba614fec0dca286fd20d97ab511654a331f (patch)
tree7ff2c8d67c28ffa9ab560139c58ff0b0f0977b71 /composer/e-msg-composer-select-file.c
parent8172d77c914b3d2cdbf1ff51f728f5c8860b64d9 (diff)
downloadgsoc2013-evolution-cc309ba614fec0dca286fd20d97ab511654a331f.tar
gsoc2013-evolution-cc309ba614fec0dca286fd20d97ab511654a331f.tar.gz
gsoc2013-evolution-cc309ba614fec0dca286fd20d97ab511654a331f.tar.bz2
gsoc2013-evolution-cc309ba614fec0dca286fd20d97ab511654a331f.tar.lz
gsoc2013-evolution-cc309ba614fec0dca286fd20d97ab511654a331f.tar.xz
gsoc2013-evolution-cc309ba614fec0dca286fd20d97ab511654a331f.tar.zst
gsoc2013-evolution-cc309ba614fec0dca286fd20d97ab511654a331f.zip
Update the composer to use the icon theme via the EIconFactory object in
2004-04-19 Michael Terry <mike@mterry.name> * e-msg-composer-select-file.c: * e-msg-composer.c: Update the composer to use the icon theme via the EIconFactory object in e-util svn path=/trunk/; revision=25516
Diffstat (limited to 'composer/e-msg-composer-select-file.c')
-rw-r--r--composer/e-msg-composer-select-file.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/composer/e-msg-composer-select-file.c b/composer/e-msg-composer-select-file.c
index 3726124837..cc07205a52 100644
--- a/composer/e-msg-composer-select-file.c
+++ b/composer/e-msg-composer-select-file.c
@@ -34,9 +34,9 @@
#include <gtk/gtksignal.h>
#include <libgnomeui/gnome-uidefs.h>
-#include <libgnomeui/gnome-window-icon.h>
#include "e-msg-composer-select-file.h"
+#include <e-util/e-icon-factory.h>
static GtkFileSelection *
run_selector(EMsgComposer *composer, const char *title, int multi, gboolean *showinline_p)
@@ -44,12 +44,20 @@ run_selector(EMsgComposer *composer, const char *title, int multi, gboolean *sho
GtkFileSelection *selection;
GtkWidget *showinline = NULL;
char *path;
+ GList *icon_list;
selection = (GtkFileSelection *)gtk_file_selection_new(title);
gtk_window_set_transient_for((GtkWindow *)selection, (GtkWindow *)composer);
gtk_window_set_wmclass((GtkWindow *)selection, "fileselection", "Evolution:composer");
gtk_window_set_modal((GtkWindow *)selection, TRUE);
- gnome_window_icon_set_from_file((GtkWindow *)selection, EVOLUTION_DATADIR "/images/evolution/compose-message.png");
+
+ icon_list = e_icon_factory_get_icon_list ("stock_mail-compose");
+ if (icon_list) {
+ gtk_window_set_icon_list (GTK_WINDOW (selection), icon_list);
+ g_list_foreach (icon_list, (GFunc) g_object_unref, NULL);
+ g_list_free (icon_list);
+ }
+
gtk_file_selection_set_select_multiple((GtkFileSelection *)selection, multi);
/* restore last path used */