aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2004-03-03 06:49:38 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-03-03 06:49:38 +0800
commit2dfa45ed94eb986902e5ae625d77df896ef87e9a (patch)
tree75a164fbeec7fcc9745341b61c54a3e90387a222 /calendar/gui
parent10aeda766c6e921f93106a397c625ea62bf7e6fd (diff)
downloadgsoc2013-evolution-2dfa45ed94eb986902e5ae625d77df896ef87e9a.tar
gsoc2013-evolution-2dfa45ed94eb986902e5ae625d77df896ef87e9a.tar.gz
gsoc2013-evolution-2dfa45ed94eb986902e5ae625d77df896ef87e9a.tar.bz2
gsoc2013-evolution-2dfa45ed94eb986902e5ae625d77df896ef87e9a.tar.lz
gsoc2013-evolution-2dfa45ed94eb986902e5ae625d77df896ef87e9a.tar.xz
gsoc2013-evolution-2dfa45ed94eb986902e5ae625d77df896ef87e9a.tar.zst
gsoc2013-evolution-2dfa45ed94eb986902e5ae625d77df896ef87e9a.zip
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
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/cal-search-bar.c6
1 files changed, 6 insertions, 0 deletions
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);