diff options
author | Srinivasa Ragavan <sragavan@novell.com> | 2005-05-16 12:46:43 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2005-05-16 12:46:43 +0800 |
commit | cb71029bdb9b6c1652fa2b85808ba28a5f49af83 (patch) | |
tree | 566dbb336f1adadeaf82da3fc70c55024b0df308 /shell/e-component-registry.c | |
parent | 9d4a0a3fe72ef4db5a798a2ef82ed4ddbf70e339 (diff) | |
download | gsoc2013-evolution-cb71029bdb9b6c1652fa2b85808ba28a5f49af83.tar.gz gsoc2013-evolution-cb71029bdb9b6c1652fa2b85808ba28a5f49af83.tar.zst gsoc2013-evolution-cb71029bdb9b6c1652fa2b85808ba28a5f49af83.zip |
shell/ChangeLog shell/e-component-registry.c shell/e-component-registry.h
2005-05-16 Srinivasa Ragavan <sragavan@novell.com>
shell/ChangeLog
shell/e-component-registry.c
shell/e-component-registry.h
shell/e-shell-window.c
shell/e-sidebar.h
shell/e-sidebar.c
addressbook/ChangeLog
addressbook/gui/component/GNOME_Evolution_Addressbook.server.in.in
calendar/ChangeLog
calendar/gui/GNOME_Evolution_Calendar.server.in.in
mail/ChangeLog
mail/GNOME_Evolution_Mail.server.in.in
Added support for tooltips for component switching buttons.
svn path=/trunk/; revision=29358
Diffstat (limited to 'shell/e-component-registry.c')
-rw-r--r-- | shell/e-component-registry.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/shell/e-component-registry.c b/shell/e-component-registry.c index 73df6f569b..218da86015 100644 --- a/shell/e-component-registry.c +++ b/shell/e-component-registry.c @@ -51,6 +51,7 @@ component_info_new (const char *id, GNOME_Evolution_Component iface, const char *alias, const char *button_label, + const char *button_tooltips, const char *menu_label, const char *menu_accelerator, int sort_order, @@ -63,6 +64,7 @@ component_info_new (const char *id, info->iface = bonobo_object_dup_ref(iface, NULL); info->alias = g_strdup (alias); info->button_label = g_strdup (button_label); + info->button_tooltips = g_strdup (button_tooltips); info->menu_label = g_strdup (menu_label); info->menu_accelerator = g_strdup (menu_accelerator); info->sort_order = sort_order; @@ -84,6 +86,7 @@ component_info_free (EComponentInfo *info) g_free (info->id); g_free (info->alias); g_free (info->button_label); + g_free (info->button_tooltips); g_free (info->menu_label); g_free (info->menu_accelerator); @@ -179,6 +182,7 @@ query_components (EComponentRegistry *registry) const char *alias; const char *icon_name; const char *sort_order_string; + const char *tooltips; GdkPixbuf *icon = NULL, *menuicon = NULL; EComponentInfo *info; int sort_order; @@ -200,6 +204,8 @@ query_components (EComponentRegistry *registry) if (label == NULL) label = g_strdup (_("Unknown")); + tooltips = bonobo_server_info_prop_lookup (& info_list->_buffer[i], "evolution:button_tooltips", language_list); + menu_label = bonobo_server_info_prop_lookup (& info_list->_buffer[i], "evolution:menu_label", language_list); if (menu_label == NULL) menu_label = g_strdup (_("Unknown")); @@ -221,7 +227,7 @@ query_components (EComponentRegistry *registry) else sort_order = atoi (sort_order_string); - info = component_info_new (id, iface, alias, label, menu_label, + info = component_info_new (id, iface, alias, label, tooltips, menu_label, menu_accelerator, sort_order, icon, menuicon); set_schemas (info, & info_list->_buffer [i]); |