From 16059b3941bcc405035aef6f45a4907d4a729db4 Mon Sep 17 00:00:00 2001 From: Veerapuram Varadhan Date: Tue, 20 Dec 2005 09:47:56 +0000 Subject: Fixes #323125, #323126 * gui/cal-search-bar.c: Re-order the search-bar menu items and make "Summary contains", which is what most people use to search for an item (be it a calendar/task/memo), as default. (cal_search_bar_construct): Do not set "Category is" as default option in search-bar menu. * gui/cal-search-bar.h: Re-order the bit-values in accordance to re-ordered search-bar menu items. svn path=/trunk/; revision=30896 --- calendar/gui/cal-search-bar.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (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 962b7e5eca..de4ef659c0 100644 --- a/calendar/gui/cal-search-bar.c +++ b/calendar/gui/cal-search-bar.c @@ -35,22 +35,22 @@ /* IDs and option items for the ESearchBar */ enum { - SEARCH_ANY_FIELD_CONTAINS, SEARCH_SUMMARY_CONTAINS, SEARCH_DESCRIPTION_CONTAINS, + SEARCH_CATEGORY_IS, SEARCH_COMMENT_CONTAINS, SEARCH_LOCATION_CONTAINS, - SEARCH_CATEGORY_IS + SEARCH_ANY_FIELD_CONTAINS }; /* Comments are disabled because they are kind of useless right now, see bug 33247 */ static ESearchBarItem search_option_items[] = { - { N_("Any field contains"), SEARCH_ANY_FIELD_CONTAINS, NULL }, { N_("Summary contains"), SEARCH_SUMMARY_CONTAINS, NULL }, { N_("Description contains"), SEARCH_DESCRIPTION_CONTAINS, NULL }, + { N_("Category is"), SEARCH_CATEGORY_IS, NULL }, { N_("Comment contains"), SEARCH_COMMENT_CONTAINS, NULL }, { N_("Location contains"), SEARCH_LOCATION_CONTAINS, NULL }, - { N_("Category is"), SEARCH_CATEGORY_IS, NULL }, + { N_("Any field contains"), SEARCH_ANY_FIELD_CONTAINS, NULL }, }; /* IDs for the categories suboptions */ @@ -417,8 +417,6 @@ cal_search_bar_construct (CalSearchBar *cal_search, guint32 flags) e_search_bar_construct (E_SEARCH_BAR (cal_search), NULL, items); make_suboptions (cal_search); - e_search_bar_set_ids (E_SEARCH_BAR (cal_search), SEARCH_CATEGORY_IS, CATEGORIES_ALL); - return cal_search; } -- cgit