From 2dfa45ed94eb986902e5ae625d77df896ef87e9a Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Tue, 2 Mar 2004 22:49:38 +0000 Subject: added support for searching the location field also. (regen_query): take 2004-03-02 Rodrigo Moya * gui/cal-search-bar.c: added support for searching the location field also. (regen_query): take into account the new search field. svn path=/trunk/; revision=24940 --- calendar/gui/cal-search-bar.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'calendar/gui/cal-search-bar.c') diff --git a/calendar/gui/cal-search-bar.c b/calendar/gui/cal-search-bar.c index 477a6d91a7..74a1dc5998 100644 --- a/calendar/gui/cal-search-bar.c +++ b/calendar/gui/cal-search-bar.c @@ -41,6 +41,7 @@ enum { SEARCH_SUMMARY_CONTAINS, SEARCH_DESCRIPTION_CONTAINS, SEARCH_COMMENT_CONTAINS, + SEARCH_LOCATION_CONTAINS, SEARCH_CATEGORY_IS, }; @@ -49,6 +50,7 @@ static ESearchBarItem search_option_items[] = { { N_("Summary contains"), SEARCH_SUMMARY_CONTAINS, NULL }, { N_("Description contains"), SEARCH_DESCRIPTION_CONTAINS, NULL }, { N_("Comment contains"), SEARCH_COMMENT_CONTAINS, NULL }, + { N_("Location contains"), SEARCH_LOCATION_CONTAINS, NULL }, { N_("Category is"), SEARCH_CATEGORY_IS, NULL }, { NULL, -1, NULL } }; @@ -308,6 +310,10 @@ regen_query (CalSearchBar *cal_search) notify_e_cal_view_contains (cal_search, "comment"); break; + case SEARCH_LOCATION_CONTAINS: + notify_e_cal_view_contains (cal_search, "location"); + break; + case SEARCH_CATEGORY_IS: notify_category_is (cal_search); -- cgit v1.2.3