aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-03-19 04:14:42 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-03-19 04:14:42 +0800
commit6b5f07ff016b73f5f633604dea76a1f71161ede1 (patch)
tree72cf063c0b19a872eb6dfc16e232995a48ba0ef2
parent007a4376883a966e8ee2ae697f8d43dd2f2f31cd (diff)
downloadgsoc2013-evolution-6b5f07ff016b73f5f633604dea76a1f71161ede1.tar
gsoc2013-evolution-6b5f07ff016b73f5f633604dea76a1f71161ede1.tar.gz
gsoc2013-evolution-6b5f07ff016b73f5f633604dea76a1f71161ede1.tar.bz2
gsoc2013-evolution-6b5f07ff016b73f5f633604dea76a1f71161ede1.tar.lz
gsoc2013-evolution-6b5f07ff016b73f5f633604dea76a1f71161ede1.tar.xz
gsoc2013-evolution-6b5f07ff016b73f5f633604dea76a1f71161ede1.tar.zst
gsoc2013-evolution-6b5f07ff016b73f5f633604dea76a1f71161ede1.zip
New, implementation for a new "SearchNow" verb. (setup_standard_verbs):
* e-search-bar.c (search_now_verb_cb): New, implementation for a new "SearchNow" verb. (setup_standard_verbs): Create verb here. (update_bonobo_menus): Add SearchNow menu item. svn path=/trunk/; revision=16197
-rw-r--r--widgets/misc/ChangeLog7
-rw-r--r--widgets/misc/e-search-bar.c14
2 files changed, 21 insertions, 0 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 4081b8c66a..ff9b1b6ef3 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,5 +1,12 @@
2002-03-18 Ettore Perazzoli <ettore@ximian.com>
+ * e-search-bar.c (search_now_verb_cb): New, implementation for a
+ new "SearchNow" verb.
+ (setup_standard_verbs): Create verb here.
+ (update_bonobo_menus): Add SearchNow menu item.
+
+2002-03-18 Ettore Perazzoli <ettore@ximian.com>
+
* e-search-bar.c (clear_verb_cb): New.
(setup_standard_verbs): New.
(e_search_bar_set_ui_component): Call it if a new
diff --git a/widgets/misc/e-search-bar.c b/widgets/misc/e-search-bar.c
index 9254732905..98b6f8fe0e 100644
--- a/widgets/misc/e-search-bar.c
+++ b/widgets/misc/e-search-bar.c
@@ -100,6 +100,17 @@ emit_menu_activated (ESearchBar *esb, int item)
/* Callbacks -- Standard verbs. */
static void
+search_now_verb_cb (BonoboUIComponent *ui_component,
+ void *data,
+ const char *verb_name)
+{
+ ESearchBar *esb;
+
+ esb = E_SEARCH_BAR (data);
+ emit_search_activated (esb);
+}
+
+static void
clear_verb_cb (BonoboUIComponent *ui_component,
void *data,
const char *verb_name)
@@ -117,6 +128,8 @@ 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",
+ search_now_verb_cb, search_bar);
}
/* Callbacks -- The verbs for all the definable items. */
@@ -360,6 +373,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, "Clear", _("Clear"), "ESearchBar:Clear", "*Control**Shift*b");
for (p = esb->menu_items; p != NULL; p = p->next) {