From cc309ba614fec0dca286fd20d97ab511654a331f Mon Sep 17 00:00:00 2001 From: Michael Terry Date: Mon, 19 Apr 2004 15:20:26 +0000 Subject: Update the composer to use the icon theme via the EIconFactory object in 2004-04-19 Michael Terry * 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 --- composer/e-msg-composer-select-file.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'composer/e-msg-composer-select-file.c') 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 #include -#include #include "e-msg-composer-select-file.h" +#include 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 */ -- cgit v1.2.3