diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2002-05-23 06:57:05 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2002-05-23 06:57:05 +0800 |
commit | e0d114045a7efa13bc9a0591a67dcb49dfcc9f46 (patch) | |
tree | f82ea3a5dad035f18558dc090566b1cf3cb52380 /widgets/misc | |
parent | 2ab46536592efcc0c4399bd7ae9b3f47119ff85d (diff) | |
download | gsoc2013-evolution-e0d114045a7efa13bc9a0591a67dcb49dfcc9f46.tar.gz gsoc2013-evolution-e0d114045a7efa13bc9a0591a67dcb49dfcc9f46.tar.zst gsoc2013-evolution-e0d114045a7efa13bc9a0591a67dcb49dfcc9f46.zip |
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
Diffstat (limited to 'widgets/misc')
-rw-r--r-- | widgets/misc/e-search-bar.c | 14 |
1 files changed, 11 insertions, 3 deletions
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 ("<placeholder name=\"SearchBar\">"); + xml = g_string_new (""); + + encoded_title = bonobo_ui_util_encode_str (_("_Search")); + g_string_sprintfa (xml, "<submenu name=\"Search\" label=\"%s\">", encoded_title); + g_free (encoded_title); + + g_string_sprintfa (xml, "<placeholder name=\"SearchBar\">"); 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, "</placeholder>"); + g_string_sprintfa (xml, "</submenu>"); - 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); } |