aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/component-factory.c8
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 <ettore@ximian.com>
+
+ * component-factory.c (create_component): Add an icon for the "New
+ message" user creatable item.
+
2002-02-21 Jeffrey Stedfast <fejj@ximian.com>
* 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<sizeof(shell_component_handlers)/sizeof(shell_component_handlers[0]);i++) {
shell_component_handlers[i].hand = gtk_signal_connect(GTK_OBJECT(shell_component),