aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-02-22 10:24:05 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-02-22 10:24:05 +0800
commit91010cb2663638eb11b03193d14097ad1bc02d17 (patch)
tree83127f09165b7b89aa9b603d10e2004503ac62c9
parentcad0e082bf449119c46e92a000aa47dfba61be68 (diff)
downloadgsoc2013-evolution-91010cb2663638eb11b03193d14097ad1bc02d17.tar.gz
gsoc2013-evolution-91010cb2663638eb11b03193d14097ad1bc02d17.tar.zst
gsoc2013-evolution-91010cb2663638eb11b03193d14097ad1bc02d17.zip
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
-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),