diff options
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r-- | mail/component-factory.c | 19 |
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), |