aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-07-02 23:04:14 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-07-02 23:04:14 +0800
commit7189f01908c33ad05a462c40c5979b289c3f94ec (patch)
tree27d540f03af5393f6f154b8312b64e914265d390 /addressbook
parentb99e17ac5284983f620ca83b0d21d77fc82afdf4 (diff)
downloadgsoc2013-evolution-7189f01908c33ad05a462c40c5979b289c3f94ec.tar
gsoc2013-evolution-7189f01908c33ad05a462c40c5979b289c3f94ec.tar.gz
gsoc2013-evolution-7189f01908c33ad05a462c40c5979b289c3f94ec.tar.bz2
gsoc2013-evolution-7189f01908c33ad05a462c40c5979b289c3f94ec.tar.lz
gsoc2013-evolution-7189f01908c33ad05a462c40c5979b289c3f94ec.tar.xz
gsoc2013-evolution-7189f01908c33ad05a462c40c5979b289c3f94ec.tar.zst
gsoc2013-evolution-7189f01908c33ad05a462c40c5979b289c3f94ec.zip
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
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog7
-rw-r--r--addressbook/gui/component/addressbook-component.c8
2 files changed, 13 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index a0e3fcbbef..3c26705674 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,10 @@
+2002-07-02 Ettore Perazzoli <ettore@ximian.com>
+
+ * 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].
+
2002-06-29 Chris Toshok <toshok@ximian.com>
* backend/pas/Makefile.am (libpas_a_SOURCES): add
diff --git a/addressbook/gui/component/addressbook-component.c b/addressbook/gui/component/addressbook-component.c
index acfdad8128..7e2d40583d 100644
--- a/addressbook/gui/component/addressbook-component.c
+++ b/addressbook/gui/component/addressbook-component.c
@@ -527,6 +527,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)
{
@@ -545,6 +546,7 @@ add_creatable_item (EvolutionShellComponent *shell_component,
id,
description,
menu_description,
+ tooltip,
menu_shortcut,
icon);
@@ -575,10 +577,12 @@ create_component (void)
BONOBO_OBJECT (destination_interface));
add_creatable_item (shell_component, "contact_list",
- _("New Contact List"), _("Contact _List"), 'l',
+ _("New Contact List"), _("Contact _List"),
+ _("Create a new contact list"), 'l',
"all_contacts.xpm");
add_creatable_item (shell_component, "contact",
- _("New Contact"), _("_Contact"), 'c',
+ _("New Contact"), _("_Contact"),
+ _("Create a new contact"), 'c',
"evolution-contacts-mini.png");
gtk_signal_connect (GTK_OBJECT (shell_component), "owner_set",