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 --- calendar/ChangeLog | 7 +++++++ calendar/gui/calendar-component.c | 6 ++++++ calendar/gui/component-factory.c | 6 ++++++ 3 files changed, 19 insertions(+) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 9f7d80d2bb..637d158ad9 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2002-07-02 Ettore Perazzoli + + * 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. + 2002-07-01 JP Rosevear * gui/calendar-config.c (config_read): listen for timezone config diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c index 71c52f9c7c..9c23a62899 100644 --- a/calendar/gui/calendar-component.c +++ b/calendar/gui/calendar-component.c @@ -645,6 +645,7 @@ add_creatable_item (EvolutionShellComponent *shell_component, const char *id, const char *description, const char *menu_description, + const char *tooltip, char menu_shortcut, const char *icon_name) { @@ -663,6 +664,7 @@ add_creatable_item (EvolutionShellComponent *shell_component, id, description, menu_description, + tooltip, menu_shortcut, icon); @@ -702,18 +704,22 @@ create_object (void) add_creatable_item (shell_component, CREATE_MEETING_ID, _("New meeting"), _("_Meeting"), + _("Create a new meeting request"), 's', "meeting-request.png"); add_creatable_item (shell_component, CREATE_TASK_ID, _("New task"), _("_Task"), + _("Create a new task"), 't', "new_task-16.png"); add_creatable_item (shell_component, CREATE_ALLDAY_EVENT_ID, _("New All Day Appointment"), _("All _Day Appointment"), + _("Create a new all-day appointment"), 'd', "new_all_day_event.png"); add_creatable_item (shell_component, CREATE_EVENT_ID, _("New appointment"), _("_Appointment"), + _("Create a new appointment"), 'a', "new_appointment.xpm"); gtk_signal_connect (GTK_OBJECT (shell_component), "user_create_new_item", diff --git a/calendar/gui/component-factory.c b/calendar/gui/component-factory.c index 71c52f9c7c..9c23a62899 100644 --- a/calendar/gui/component-factory.c +++ b/calendar/gui/component-factory.c @@ -645,6 +645,7 @@ add_creatable_item (EvolutionShellComponent *shell_component, const char *id, const char *description, const char *menu_description, + const char *tooltip, char menu_shortcut, const char *icon_name) { @@ -663,6 +664,7 @@ add_creatable_item (EvolutionShellComponent *shell_component, id, description, menu_description, + tooltip, menu_shortcut, icon); @@ -702,18 +704,22 @@ create_object (void) add_creatable_item (shell_component, CREATE_MEETING_ID, _("New meeting"), _("_Meeting"), + _("Create a new meeting request"), 's', "meeting-request.png"); add_creatable_item (shell_component, CREATE_TASK_ID, _("New task"), _("_Task"), + _("Create a new task"), 't', "new_task-16.png"); add_creatable_item (shell_component, CREATE_ALLDAY_EVENT_ID, _("New All Day Appointment"), _("All _Day Appointment"), + _("Create a new all-day appointment"), 'd', "new_all_day_event.png"); add_creatable_item (shell_component, CREATE_EVENT_ID, _("New appointment"), _("_Appointment"), + _("Create a new appointment"), 'a', "new_appointment.xpm"); gtk_signal_connect (GTK_OBJECT (shell_component), "user_create_new_item", -- cgit v1.2.3