From 91010cb2663638eb11b03193d14097ad1bc02d17 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Fri, 22 Feb 2002 02:24:05 +0000 Subject: Add an icon for the "New message" user creatable item. * component-factory.c (create_component): Add an icon for the "New message" user creatable item. svn path=/trunk/; revision=15791 --- mail/component-factory.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'mail/component-factory.c') diff --git a/mail/component-factory.c b/mail/component-factory.c index 7531cb1bd0..aa664ded39 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -944,6 +944,7 @@ create_component (void) { EvolutionShellComponentDndDestinationFolder *destination_interface; MailOfflineHandler *offline_handler; + GdkPixbuf *new_mail_icon; int i; shell_component = evolution_shell_component_new (folder_types, @@ -964,10 +965,13 @@ create_component (void) BONOBO_OBJECT (destination_interface)); evolution_mail_config_wizard_init (); - + + new_mail_icon = gdk_pixbuf_new_from_file (EVOLUTION_ICONSDIR "/new-message.xpm"); evolution_shell_component_add_user_creatable_item (shell_component, "message", _("New Mail Message"), _("_Mail Message"), 'm', - NULL); + new_mail_icon); + if (new_mail_icon != NULL) + gdk_pixbuf_unref (new_mail_icon); for (i=0;i