added support for searching the location field also. (regen_query): take

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.

svn path=/trunk/; revision=24940
This commit is contained in:
Rodrigo Moya
2004-03-02 22:49:38 +00:00
committed by Rodrigo Moya
parent 10aeda766c
commit 2dfa45ed94
2 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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);