From 4b68843dfa4f807b5b768e65d353b30d3ca91d1a Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 24 Oct 2002 01:48:20 +0000 Subject: If the clear button was pressed, we want the entry to be sensitive (not 2002-10-23 Jeffrey Stedfast * e-filter-bar.c (option_changed): If the clear button was pressed, we want the entry to be sensitive (not insensitive). * e-search-bar.c (e_search_bar_set_item_id): If the item id is CLEAR_ID, we want to select the first item (0) but still set the esb->item_id to CLEAR_ID. (set_find_now_sensitive): Don't bother getting the GtkEntry text, we don't even use it? (clear_search): Set the item id as E_SEARCHBAR_CLEAR_ID rather than 0 so that it can be checked for. svn path=/trunk/; revision=18421 --- widgets/misc/e-search-bar.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'widgets/misc/e-search-bar.h') diff --git a/widgets/misc/e-search-bar.h b/widgets/misc/e-search-bar.h index 06da79aaa1..7ca10c3890 100644 --- a/widgets/misc/e-search-bar.h +++ b/widgets/misc/e-search-bar.h @@ -102,8 +102,8 @@ struct _ESearchBarClass }; enum { - E_SEARCHBAR_FIND_NOW_ID = 0, - E_SEARCHBAR_CLEAR_ID = 1 + E_SEARCHBAR_FIND_NOW_ID = -1, + E_SEARCHBAR_CLEAR_ID = -2 }; -- cgit v1.2.3