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 | |
parent | 0a45cf40536abbbc694796ef25408c6c00550e95 (diff) | |
download | gsoc2013-evolution-9d237347078b5df54cbdc30d988a4b5253105cc1.tar.gz gsoc2013-evolution-9d237347078b5df54cbdc30d988a4b5253105cc1.tar.zst gsoc2013-evolution-9d237347078b5df54cbdc30d988a4b5253105cc1.zip |
Add tooltips for Views menu.
svn path=/trunk/; revision=33511
-rw-r--r-- | widgets/ChangeLog | 5 | ||||
-rw-r--r-- | widgets/menus/gal-view-menus.c | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/widgets/ChangeLog b/widgets/ChangeLog index 06bb844447..b5c12a4406 100644 --- a/widgets/ChangeLog +++ b/widgets/ChangeLog @@ -1,3 +1,8 @@ +2007-05-11 Srinivasa Ragavan <sragavan@novell.com> + + * menus/gal-view-menus.c: (build_menus): Add tooltips for user defined + views. + 2007-04-19 Matthew Barnes <mbarnes@redhat.com> ** Fixes part of bug #429422 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); |