From 7189f01908c33ad05a462c40c5979b289c3f94ec Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Tue, 2 Jul 2002 15:04:14 +0000 Subject: New arg @tooltip; pass it to * gui/component/addressbook-component.c (add_creatable_item): New arg @tooltip; pass it to evolution_shell_component_add_user_creatable_item() [which now has a @tooltip arg]. * gui/component-factory.c (add_creatable_item): New arg @tooltip. Pass it to evolution_shell_component_add_user_creatable_item(), which now has a @tooltip arg. (create_object): Added tooltips. * component-factory.c (create_component): Pass a tooltip to evolution_shell_component_add_user_creatable_item. * e-shell-user-creatable-items-handler.c: New member tooltip in struct MenuItem. (ensure_menu_items): Initialize the tooltip member. (shell_view_view_changed_callback): Set the tooltip for the "New" button. (ensure_menu_xml): Set up the tooltip here as well. * evolution-shell-component.c: Add tooltip member to struct UserCreatableItemType. (user_creatable_item_type_new): New arg @tooltip. (evolution_shell_component_add_user_creatable_item): New arg @tooltip. (impl__get_userCreatableItemTypes): Put the tooltip in the struct as well. * e-shell-user-creatable-items-handler.c (setup_toolbar_button): Create a GtkTooltips object and attach it to the combo_button using gtk_object_set_data(). (shell_view_view_changed_callback): Set up a tooltip for the button, according to the default. * Evolution-ShellComponent.idl: Add a tooltip member to struct UserCreatableItemType. svn path=/trunk/; revision=17343 --- mail/ChangeLog | 5 +++++ mail/component-factory.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 4d382ffcd8..8177542ec0 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2002-07-02 Ettore Perazzoli + + * component-factory.c (create_component): Pass a tooltip to + evolution_shell_component_add_user_creatable_item. + 2002-07-02 Sean Atkinson * mail-preferences.c: remove dependency on removed file diff --git a/mail/component-factory.c b/mail/component-factory.c index b514bedcb5..0acc04561e 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -995,7 +995,8 @@ create_component (void) 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', + _("New Mail Message"), _("_Mail Message"), + _("Compose a new mail message"), 'm', new_mail_icon); if (new_mail_icon != NULL) gdk_pixbuf_unref (new_mail_icon); -- cgit v1.2.3