aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-08-02 05:28:52 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-08-02 05:28:52 +0800
commitabbe834dfdb88d81b322e36953843a65f5f1f054 (patch)
treed4056fa89f62a97e561f75cc4b096178d4283a3b /mail/component-factory.c
parent0f4389f5965014c429b00cf20b797fabbb35268b (diff)
downloadgsoc2013-evolution-abbe834dfdb88d81b322e36953843a65f5f1f054.tar.gz
gsoc2013-evolution-abbe834dfdb88d81b322e36953843a65f5f1f054.tar.zst
gsoc2013-evolution-abbe834dfdb88d81b322e36953843a65f5f1f054.zip
(create_component): Use
"post-message-16.png" as the icon for the "New Message Post" item. svn path=/trunk/; revision=17677
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c
index 635b378dd7..e291c40bae 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -963,7 +963,7 @@ create_component (void)
{
EvolutionShellComponentDndDestinationFolder *destination_interface;
MailOfflineHandler *offline_handler;
- GdkPixbuf *new_mail_icon;
+ GdkPixbuf *icon;
int i;
shell_component = evolution_shell_component_new (folder_types,
@@ -989,22 +989,23 @@ create_component (void)
evolution_mail_config_wizard_init ();
- new_mail_icon = gdk_pixbuf_new_from_file (EVOLUTION_ICONSDIR "/new-message.xpm");
-
+ 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"),
_("Compose a new mail message"),
"mail", 'm',
- new_mail_icon);
-
+ icon);
+ if (icon != NULL)
+ gdk_pixbuf_unref (icon);
+
+ icon = gdk_pixbuf_new_from_file (EVOLUTION_ICONSDIR "/post-message-16.png");
evolution_shell_component_add_user_creatable_item (shell_component, "post",
_("New Message Post"), _("_Post Message"),
_("Post a new mail message"),
"mail", 'p',
- new_mail_icon);
-
- if (new_mail_icon != NULL)
- gdk_pixbuf_unref (new_mail_icon);
+ icon);
+ if (icon != NULL)
+ gdk_pixbuf_unref (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),