From 69bf3985321f43107a694855c764500c89b05deb Mon Sep 17 00:00:00 2001 From: Michael Terry Date: Mon, 19 Apr 2004 15:20:48 +0000 Subject: mail-component.c 2004-04-19 Michael Terry * 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 --- mail/em-account-prefs.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'mail/em-account-prefs.c') diff --git a/mail/em-account-prefs.c b/mail/em-account-prefs.c index ec4e83ab9e..988a6ab216 100644 --- a/mail/em-account-prefs.c +++ b/mail/em-account-prefs.c @@ -38,9 +38,8 @@ #include "e-util/e-account-list.h" -#include "art/mark.xpm" - #include "em-account-prefs.h" +#include static void em_account_prefs_class_init (EMAccountPrefsClass *class); static void em_account_prefs_init (EMAccountPrefs *prefs); @@ -94,7 +93,7 @@ em_account_prefs_class_init (EMAccountPrefsClass *klass) /* setup static data */ disabled_pixbuf = NULL; - enabled_pixbuf = gdk_pixbuf_new_from_xpm_data ((const char **) mark_xpm); + enabled_pixbuf = e_icon_factory_get_icon ("stock_mark", 16); } static void @@ -103,7 +102,7 @@ em_account_prefs_init (EMAccountPrefs *prefs) prefs->druid = NULL; prefs->editor = NULL; - gdk_pixbuf_render_pixmap_and_mask (enabled_pixbuf, &prefs->mark_pixmap, &prefs->mark_bitmap, 128); + prefs->mark_pixbuf = g_object_ref (enabled_pixbuf); } static void @@ -122,8 +121,7 @@ em_account_prefs_finalise (GObject *obj) EMAccountPrefs *prefs = (EMAccountPrefs *) obj; g_object_unref (prefs->gui); - gdk_pixmap_unref (prefs->mark_pixmap); - g_object_unref (prefs->mark_bitmap); + g_object_unref (prefs->mark_pixbuf); G_OBJECT_CLASS (parent_class)->finalize (obj); } -- cgit