diff options
-rw-r--r-- | widgets/misc/ChangeLog | 8 | ||||
-rw-r--r-- | widgets/misc/e-search-bar.c | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index 9ec923e5ab..4fde7c9ed8 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,5 +1,13 @@ 2002-03-18 Ettore Perazzoli <ettore@ximian.com> + * e-search-bar.c (update_bonobo_menus): Rename the "Search Now" + menu entry to "Find Now". Rename the corresponding verb to + "ESearchBar:FindNow". + (update_sensitivity): Updated accordingly. + (setup_standard_verbs): Likewise. + +2002-03-18 Ettore Perazzoli <ettore@ximian.com> + * e-search-bar.c (update_sensitivity): New halper function to update the sensitivity of the commands. (entry_changed_cb): New callback to make the activate_button and diff --git a/widgets/misc/e-search-bar.c b/widgets/misc/e-search-bar.c index b8bda3888c..754107aaeb 100644 --- a/widgets/misc/e-search-bar.c +++ b/widgets/misc/e-search-bar.c @@ -109,13 +109,13 @@ update_sensitivity (ESearchBar *search_bar) if (text != NULL && text[0] != '\0') { if (search_bar->ui_component != NULL) bonobo_ui_component_set_prop (search_bar->ui_component, - "/commands/ESearchBar:SearchNow", + "/commands/ESearchBar:FindNow", "sensitive", "1", NULL); gtk_widget_set_sensitive (search_bar->activate_button, TRUE); } else { if (search_bar->ui_component != NULL) bonobo_ui_component_set_prop (search_bar->ui_component, - "/commands/ESearchBar:SearchNow", + "/commands/ESearchBar:FindNow", "sensitive", "0", NULL); gtk_widget_set_sensitive (search_bar->activate_button, FALSE); } @@ -161,7 +161,7 @@ setup_standard_verbs (ESearchBar *search_bar) { bonobo_ui_component_add_verb (search_bar->ui_component, "ESearchBar:Clear", clear_verb_cb, search_bar); - bonobo_ui_component_add_verb (search_bar->ui_component, "ESearchBar:SearchNow", + bonobo_ui_component_add_verb (search_bar->ui_component, "ESearchBar:FindNow", search_now_verb_cb, search_bar); /* Make sure the entries are created with the correct sensitivity. */ @@ -426,7 +426,7 @@ update_bonobo_menus (ESearchBar *esb) xml = g_string_new ("<placeholder name=\"SearchBar\">"); - append_xml_menu_item (xml, "SearchNow", _("Search Now"), "ESearchBar:SearchNow", "*Control*b"); + append_xml_menu_item (xml, "FindNow", _("Find Now"), "ESearchBar:FindNow", "*Control*b"); append_xml_menu_item (xml, "Clear", _("Clear"), "ESearchBar:Clear", "*Control**Shift*b"); for (p = esb->menu_items; p != NULL; p = p->next) { |