aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-send-recv.c
diff options
context:
space:
mode:
authorMichael Terry <mike@mterry.name>2004-04-19 23:20:48 +0800
committerRodney Dawes <dobey@src.gnome.org>2004-04-19 23:20:48 +0800
commit69bf3985321f43107a694855c764500c89b05deb (patch)
tree710f94bb8dd3378e397b94cf51a46d2f8dfbd293 /mail/mail-send-recv.c
parentcc309ba614fec0dca286fd20d97ab511654a331f (diff)
downloadgsoc2013-evolution-69bf3985321f43107a694855c764500c89b05deb.tar
gsoc2013-evolution-69bf3985321f43107a694855c764500c89b05deb.tar.gz
gsoc2013-evolution-69bf3985321f43107a694855c764500c89b05deb.tar.bz2
gsoc2013-evolution-69bf3985321f43107a694855c764500c89b05deb.tar.lz
gsoc2013-evolution-69bf3985321f43107a694855c764500c89b05deb.tar.xz
gsoc2013-evolution-69bf3985321f43107a694855c764500c89b05deb.tar.zst
gsoc2013-evolution-69bf3985321f43107a694855c764500c89b05deb.zip
mail-component.c
2004-04-19 Michael Terry <mike@mterry.name> * GNOME_Evolution_Mail.server.in.in: * em-account-prefs.[ch]: * em-composer-prefs.[ch]: * em-folder-browser.c: * em-folder-tree.c: * em-folder-view.c: * em-format-html-display.c: * em-format-html.[ch]: * em-popup.c: * mail-component.c * mail-config-druid.c: * mail-config.glade: * mail-mt.c: * mail-send-recv.c: * message-list.c: * message-tag-followup.c: * message-tags.glade: Update the mailer to use icon themes through the EIconFactory object in e-util svn path=/trunk/; revision=25517
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r--mail/mail-send-recv.c21
1 files changed, 17 insertions, 4 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index 3cd99eaedb..ebd233f586 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -27,7 +27,7 @@
#include <stdio.h>
#include <string.h>
-/* for the dialogue stuff */
+/* for the dialog stuff */
#include <glib.h>
#include <gtk/gtkmain.h>
#include <gtk/gtkdialog.h>
@@ -56,6 +56,7 @@
#include "mail-ops.h"
#include "mail-send-recv.h"
#include "mail-folder-cache.h"
+#include <e-util/e-icon-factory.h>
#define d(x)
@@ -313,6 +314,8 @@ 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);
gtk_window_set_modal ((GtkWindow *) gd, FALSE);
@@ -320,7 +323,13 @@ build_dialog (EAccountList *accounts, CamelFolder *outbox, const char *destinati
stop = (GtkButton *)e_gtk_button_new_with_icon(_("Cancel _All"), GTK_STOCK_CANCEL);
gtk_widget_show((GtkWidget *)stop);
gtk_dialog_add_action_widget(gd, (GtkWidget *)stop, GTK_RESPONSE_CANCEL);
- gnome_window_icon_set_from_file (GTK_WINDOW (gd), EVOLUTION_ICONSDIR "/send-receive.xpm");
+
+ icon_list = e_icon_factory_get_icon_list ("stock_mail-send-receive");
+ if (icon_list) {
+ gtk_window_set_icon_list (GTK_WINDOW (gd), icon_list);
+ g_list_foreach (icon_list, (GFunc) g_object_unref, NULL);
+ g_list_free (icon_list);
+ }
num_sources = 0;
@@ -388,7 +397,9 @@ 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);
- recv_icon = gtk_image_new_from_file (EVOLUTION_BUTTONSDIR "/receive-24.png");
+ pixbuf = e_icon_factory_get_icon ("stock_mail-receive", 24);
+ recv_icon = gtk_image_new_from_pixbuf (pixbuf);
+ gdk_pixbuf_unref (pixbuf);
pretty_url = format_url (source->url);
label = (GtkLabel *)gtk_label_new (pretty_url);
@@ -441,7 +452,9 @@ 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);
- send_icon = gtk_image_new_from_file (EVOLUTION_BUTTONSDIR "/send-24.png");
+ pixbuf = e_icon_factory_get_icon ("stock_mail-send", 24);
+ send_icon = gtk_image_new_from_pixbuf (pixbuf);
+ gdk_pixbuf_unref (pixbuf);
pretty_url = format_url (destination);
label = (GtkLabel *)gtk_label_new (pretty_url);