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/ChangeLog | 5 +++++ mail/component-factory.c | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 853e1f266a..cde1a7e43a 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2002-02-21 Ettore Perazzoli + + * component-factory.c (create_component): Add an icon for the "New + message" user creatable item. + 2002-02-21 Jeffrey Stedfast * message-list.c (on_message_list_built): Connect to our own 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