diff options
-rw-r--r-- | addressbook/ChangeLog | 7 | ||||
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names.c | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index ab61673333..6540241277 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,10 @@ +2002-03-11 Chris Toshok <toshok@ximian.com> + + * gui/component/select-names/e-select-names.c (update_query): + change contains x-evolution-any-field to beginswith on email, + full_name, and nickname. faster, and more applicable to this + dialog. + 2002-03-09 Chris Toshok <toshok@ximian.com> * backend/idl/addressbook.idl: add TLSNotAvailable to diff --git a/addressbook/gui/component/select-names/e-select-names.c b/addressbook/gui/component/select-names/e-select-names.c index b58b6c1748..e0cc438209 100644 --- a/addressbook/gui/component/select-names/e-select-names.c +++ b/addressbook/gui/component/select-names/e-select-names.c @@ -483,7 +483,10 @@ update_query (GtkWidget *button, ESelectNames *e_select_names) if (category && *category) q_array[i++] = g_strdup_printf ("(is \"category\" \"%s\")", category); if (search && *search) - q_array[i++] = g_strdup_printf ("(contains \"x-evolution-any-field\" \"%s\")", search); + q_array[i++] = g_strdup_printf ("(or (beginswith \"email\" \"%s\") " + " (beginswith \"full_name\" \"%s\") " + " (beginswith \"nickname\" \"%s\"))", + search, search, search); q_array[i++] = NULL; if (i > 2) { char *temp = g_strjoinv (" ", q_array); |