diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-08-02 05:28:52 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-08-02 05:28:52 +0800 |
commit | abbe834dfdb88d81b322e36953843a65f5f1f054 (patch) | |
tree | d4056fa89f62a97e561f75cc4b096178d4283a3b /mail | |
parent | 0f4389f5965014c429b00cf20b797fabbb35268b (diff) | |
download | gsoc2013-evolution-abbe834dfdb88d81b322e36953843a65f5f1f054.tar gsoc2013-evolution-abbe834dfdb88d81b322e36953843a65f5f1f054.tar.gz gsoc2013-evolution-abbe834dfdb88d81b322e36953843a65f5f1f054.tar.bz2 gsoc2013-evolution-abbe834dfdb88d81b322e36953843a65f5f1f054.tar.lz gsoc2013-evolution-abbe834dfdb88d81b322e36953843a65f5f1f054.tar.xz 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')
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/component-factory.c | 19 |
2 files changed, 15 insertions, 9 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 1d71531b69..a7567fa5d6 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2002-08-01 Ettore Perazzoli <ettore@ximian.com> + + * component-factory.c (create_component): Use + "post-message-16.png" as the icon for the "New Message Post" item. + 2002-08-01 Jeffrey Stedfast <fejj@ximian.com> * mail-account-gui.c (mail_account_gui_save): If we are editing an 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), |