diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-05-11 19:03:48 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-05-11 19:03:48 +0800 |
commit | 9d237347078b5df54cbdc30d988a4b5253105cc1 (patch) | |
tree | 82ba480761a0d2c702dfea23f4df75e55a7853ce /widgets/menus | |
parent | 0a45cf40536abbbc694796ef25408c6c00550e95 (diff) | |
download | gsoc2013-evolution-9d237347078b5df54cbdc30d988a4b5253105cc1.tar gsoc2013-evolution-9d237347078b5df54cbdc30d988a4b5253105cc1.tar.gz gsoc2013-evolution-9d237347078b5df54cbdc30d988a4b5253105cc1.tar.bz2 gsoc2013-evolution-9d237347078b5df54cbdc30d988a4b5253105cc1.tar.lz gsoc2013-evolution-9d237347078b5df54cbdc30d988a4b5253105cc1.tar.xz gsoc2013-evolution-9d237347078b5df54cbdc30d988a4b5253105cc1.tar.zst gsoc2013-evolution-9d237347078b5df54cbdc30d988a4b5253105cc1.zip |
Add tooltips for Views menu.
svn path=/trunk/; revision=33511
Diffstat (limited to 'widgets/menus')
-rw-r--r-- | widgets/menus/gal-view-menus.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/widgets/menus/gal-view-menus.c b/widgets/menus/gal-view-menus.c index e6e7a93420..26b592fa98 100644 --- a/widgets/menus/gal-view-menus.c +++ b/widgets/menus/gal-view-menus.c @@ -301,6 +301,7 @@ build_menus(GalViewMenus *menus) GalViewCollectionItem *item = gal_view_collection_get_view_item(collection, i); ListenerClosure *closure; char *label; + char *tip; menuitem = bonobo_ui_node_new_child(submenu, "menuitem"); bonobo_ui_node_set_attr(menuitem, "name", item->id); @@ -311,6 +312,9 @@ build_menus(GalViewMenus *menus) command = bonobo_ui_node_new_child (commands, "cmd"); bonobo_ui_node_set_attr(command, "name", item->id); bonobo_ui_node_set_attr(command, "group", "GalViewMenus"); + tip = g_strdup_printf (_("Select View: %s"), item->id); + bonobo_ui_node_set_attr(command, "_tip", tip); + g_free (tip); label = bonobo_ui_util_encode_str (item->title); bonobo_ui_node_set_attr(menuitem, "label", label); @@ -352,6 +356,7 @@ build_menus(GalViewMenus *menus) command = bonobo_ui_node_new_child (commands, "cmd"); bonobo_ui_node_set_attr(command, "name", "custom_view"); bonobo_ui_node_set_attr(command, "group", "GalViewMenus"); + bonobo_ui_node_set_attr(command, "_tip", N_("Current view is a customized view")); menuitem = bonobo_ui_node_new_child(submenu, "menuitem"); @@ -361,6 +366,7 @@ build_menus(GalViewMenus *menus) command = bonobo_ui_node_new_child(commands, "cmd"); bonobo_ui_node_set_attr(command, "name", "SaveCurrentView"); + bonobo_ui_node_set_attr(command, "_tip", N_("Save current custom view")); } menuitem = bonobo_ui_node_new_child(submenu, "separator"); @@ -374,6 +380,7 @@ build_menus(GalViewMenus *menus) command = bonobo_ui_node_new_child(commands, "cmd"); bonobo_ui_node_set_attr(command, "name", "DefineViews"); + bonobo_ui_node_set_attr(command, "_tip", N_("Create or edit views")); } xml = bonobo_ui_node_to_string(root, TRUE); |