From e0d114045a7efa13bc9a0591a67dcb49dfcc9f46 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Wed, 22 May 2002 22:57:05 +0000 Subject: Put the stuff in /menu/Searchplaceholder/Search instead of /menu/Search. * e-search-bar.c (update_bonobo_menus): Put the stuff in /menu/Searchplaceholder/Search instead of /menu/Search. svn path=/trunk/; revision=16980 --- widgets/misc/e-search-bar.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'widgets') diff --git a/widgets/misc/e-search-bar.c b/widgets/misc/e-search-bar.c index 71848b9c3c..f2f2e269f3 100644 --- a/widgets/misc/e-search-bar.c +++ b/widgets/misc/e-search-bar.c @@ -497,10 +497,17 @@ update_bonobo_menus (ESearchBar *esb) GString *xml; GSList *p; char *verb_name; + char *encoded_title; - bonobo_ui_component_rm (esb->ui_component, "/menu/Search/SearchBar", NULL); + bonobo_ui_component_rm (esb->ui_component, "/menu/SearchPlaceholder/Search", NULL); - xml = g_string_new (""); + xml = g_string_new (""); + + encoded_title = bonobo_ui_util_encode_str (_("_Search")); + g_string_sprintfa (xml, "", encoded_title); + g_free (encoded_title); + + g_string_sprintfa (xml, ""); append_xml_menu_item (xml, "FindNow", _("_Find Now"), "ESearchBar:FindNow", NULL); append_xml_menu_item (xml, "Clear", _("_Clear"), "ESearchBar:Clear", "*Control**Shift*b"); @@ -522,8 +529,9 @@ update_bonobo_menus (ESearchBar *esb) } g_string_sprintfa (xml, ""); + g_string_sprintfa (xml, ""); - bonobo_ui_component_set (esb->ui_component, "/menu/Search", xml->str, NULL); + bonobo_ui_component_set (esb->ui_component, "/menu/SearchPlaceholder", xml->str, NULL); g_string_free (xml, TRUE); } -- cgit v1.2.3