diff options
-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); |