diff options
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 6 | ||||
-rw-r--r-- | calendar/gui/cal-search-bar.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index edb246f9e0..b9ee22c500 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,9 @@ +2004-03-02 Rodrigo Moya <rodrigo@ximian.com> + + * gui/cal-search-bar.c: added support for searching the location + field also. + (regen_query): take into account the new search field. + 2004-03-02 JP Rosevear <jpr@ximian.com> * gui/Makefile.am: remove conduit dir creation 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); |