diff options
-rw-r--r-- | addressbook/ChangeLog | 7 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook.c | 6 |
2 files changed, 10 insertions, 3 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 3b05766685..c4eecebfc0 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,10 @@ +2001-08-23 Chris Toshok <toshok@ximian.com> + + * gui/component/addressbook.c (addressbook_query_changed): switch + "full_name" to "x-evolution-any-field" in all the queries where we + want to match all cards, since the backends universally handle + this special case more efficiently. + 2001-08-22 Jon Trowbridge <trow@ximian.com> * gui/contact-list-editor/e-contact-list-editor.c (extract_info): diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index 775b1a32d3..9cc11635d8 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -717,7 +717,7 @@ addressbook_query_changed (ESearchBar *esb, AddressbookView *view) if (subid < 0 || subid == G_MAXINT) { /* match everything */ - search_query = g_strdup ("(contains \"full_name\" \"\")"); + search_query = g_strdup ("(contains \"x-evolution-any-field\" \"\")"); } else { master_list = get_master_list (); category_name = e_categories_master_list_nth (master_list, subid); @@ -725,12 +725,12 @@ addressbook_query_changed (ESearchBar *esb, AddressbookView *view) } break; default: - search_query = g_strdup ("(contains \"full_name\" \"\")"); + search_query = g_strdup ("(contains \"x-evolution-any-field\" \"\")"); break; } g_string_free (s, TRUE); } else - search_query = g_strdup ("(contains \"full_name\" \"\")"); + search_query = g_strdup ("(contains \"x-evolution-any-field\" \"\")"); if (search_query) gtk_object_set (GTK_OBJECT(view->view), |