aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-search-bar.c
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2002-07-24 00:03:07 +0800
committerPeter Williams <peterw@src.gnome.org>2002-07-24 00:03:07 +0800
commitef539c50b7678a286964ee8051b4ce4127dc0837 (patch)
treee27cdea6d54152b57b1b17b91c3e87c3f0bd33e8 /widgets/misc/e-search-bar.c
parent7f9b336892181f3e1d25883804ac7f059d21071a (diff)
downloadgsoc2013-evolution-ef539c50b7678a286964ee8051b4ce4127dc0837.tar
gsoc2013-evolution-ef539c50b7678a286964ee8051b4ce4127dc0837.tar.gz
gsoc2013-evolution-ef539c50b7678a286964ee8051b4ce4127dc0837.tar.bz2
gsoc2013-evolution-ef539c50b7678a286964ee8051b4ce4127dc0837.tar.lz
gsoc2013-evolution-ef539c50b7678a286964ee8051b4ce4127dc0837.tar.xz
gsoc2013-evolution-ef539c50b7678a286964ee8051b4ce4127dc0837.tar.zst
gsoc2013-evolution-ef539c50b7678a286964ee8051b4ce4127dc0837.zip
Also perform a search on the query_changed signal, which is what gets
2002-07-22 Peter Williams <peterw@ximian.com> * folder-browser.c (folder_browser_gui_init): Also perform a search on the query_changed signal, which is what gets emitted when the Search menu is used. 2002-07-22 Peter Williams <peterw@ximian.com> * e-filter-bar.c (do_advanced): Break out the code for creating the advanced rule editor into a separate function, so that... (menubar_activated): ... can also create an Advanced dialog; needed when the Search menu's advanced button is used. (option_changed): Change this to call the function instead of having all the code to itself. * e-search-bar.h: Add id's for the FIND_NOW and CLEAR actions so that other code (eg, EFilterBar) doesn't get confused by an old id being used when the search-activated signal gets emitted. * e-search-bar.c (clear_search): Set the item_id to CLEAR before emitting the signal. (search_now_verb_cb): Just make this emit query_changed, as the button in the toolbar does. svn path=/trunk/; revision=17550
Diffstat (limited to 'widgets/misc/e-search-bar.c')
-rw-r--r--widgets/misc/e-search-bar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/misc/e-search-bar.c b/widgets/misc/e-search-bar.c
index 93896a1a72..8da8863d65 100644
--- a/widgets/misc/e-search-bar.c
+++ b/widgets/misc/e-search-bar.c
@@ -103,6 +103,7 @@ static void
clear_search (ESearchBar *esb)
{
e_search_bar_set_text (esb, "");
+ e_search_bar_set_item_id (esb, E_SEARCHBAR_CLEAR_ID);
emit_search_activated (esb);
}
@@ -188,7 +189,7 @@ search_now_verb_cb (BonoboUIComponent *ui_component,
ESearchBar *esb;
esb = E_SEARCH_BAR (data);
- emit_search_activated (esb);
+ emit_query_changed (esb);
}
static void