aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-10-29 06:37:53 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-10-29 06:37:53 +0800
commit3a11574695e84d795dd0e5e7cf133d92f0f23dfa (patch)
treeb03ea74eae5804b53a8594eb196bdb93fb3d5de1 /widgets/misc
parent579415f2b22c84697f95a18eed6946db64c878ba (diff)
downloadgsoc2013-evolution-3a11574695e84d795dd0e5e7cf133d92f0f23dfa.tar
gsoc2013-evolution-3a11574695e84d795dd0e5e7cf133d92f0f23dfa.tar.gz
gsoc2013-evolution-3a11574695e84d795dd0e5e7cf133d92f0f23dfa.tar.bz2
gsoc2013-evolution-3a11574695e84d795dd0e5e7cf133d92f0f23dfa.tar.lz
gsoc2013-evolution-3a11574695e84d795dd0e5e7cf133d92f0f23dfa.tar.xz
gsoc2013-evolution-3a11574695e84d795dd0e5e7cf133d92f0f23dfa.tar.zst
gsoc2013-evolution-3a11574695e84d795dd0e5e7cf133d92f0f23dfa.zip
Emit a search_activated signal. (e_search_bar_set_item_id): Revert to
2002-10-28 Jeffrey Stedfast <fejj@ximian.com> * e-search-bar.c (clear_search): Emit a search_activated signal. (e_search_bar_set_item_id): Revert to original implementation. svn path=/trunk/; revision=18464
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/ChangeLog5
-rw-r--r--widgets/misc/e-search-bar.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index abb7449a3c..94109a5bd9 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,8 @@
+2002-10-28 Jeffrey Stedfast <fejj@ximian.com>
+
+ * e-search-bar.c (clear_search): Emit a search_activated signal.
+ (e_search_bar_set_item_id): Revert to original implementation.
+
2002-10-23 Jeffrey Stedfast <fejj@ximian.com>
* e-filter-bar.c (option_changed): If the clear button was
diff --git a/widgets/misc/e-search-bar.c b/widgets/misc/e-search-bar.c
index 76a26f0e98..da3bcb0803 100644
--- a/widgets/misc/e-search-bar.c
+++ b/widgets/misc/e-search-bar.c
@@ -70,6 +70,7 @@ enum {
/* Forward decls. */
static void emit_search_activated (ESearchBar *esb);
+static void emit_query_changed (ESearchBar *esb);
/* Utility functions. */
@@ -99,7 +100,8 @@ static void
clear_search (ESearchBar *esb)
{
e_search_bar_set_text (esb, "");
- e_search_bar_set_item_id (esb, E_SEARCHBAR_CLEAR_ID);
+ e_search_bar_set_item_id (esb, 0);
+ emit_search_activated (esb);
}
/* Frees an array of subitem information */
@@ -1077,8 +1079,7 @@ e_search_bar_set_item_id (ESearchBar *search_bar, int id)
g_return_if_fail (E_IS_SEARCH_BAR (search_bar));
- row = id == E_SEARCHBAR_CLEAR_ID ? 0 : id;
- row = find_id (search_bar->option_menu, row, "EsbChoiceId", NULL);
+ row = find_id (search_bar->option_menu, id, "EsbChoiceId", NULL);
g_return_if_fail (row != -1);
search_bar->item_id = id;