diff options
author | Chris Toshok <toshok@ximian.com> | 2002-03-12 03:44:48 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-03-12 03:44:48 +0800 |
commit | 3aafc4eaf31c8cbf07feae679acb93f7366b16d7 (patch) | |
tree | c3941b6dda6b30a88c941080e842b673f312fb74 /addressbook/gui/component/select-names/e-select-names.c | |
parent | bb93ebbbee7a46b780ed6c0d408827594b4102a4 (diff) | |
download | gsoc2013-evolution-3aafc4eaf31c8cbf07feae679acb93f7366b16d7.tar.gz gsoc2013-evolution-3aafc4eaf31c8cbf07feae679acb93f7366b16d7.tar.zst gsoc2013-evolution-3aafc4eaf31c8cbf07feae679acb93f7366b16d7.zip |
change contains x-evolution-any-field to beginswith on email, full_name,
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.
svn path=/trunk/; revision=16103
Diffstat (limited to 'addressbook/gui/component/select-names/e-select-names.c')
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |