diff options
author | Chris Toshok <toshok@helixcode.com> | 2000-08-09 13:12:19 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2000-08-09 13:12:19 +0800 |
commit | 37f85438b274e6285335f8484031f06522ce1fe2 (patch) | |
tree | 15df7f73f1c59b06c0366376de4caa37f02d9fb4 /addressbook/gui | |
parent | e367caf0428dd69039dedcea8d2376dcba94101d (diff) | |
download | gsoc2013-evolution-37f85438b274e6285335f8484031f06522ce1fe2.tar.gz gsoc2013-evolution-37f85438b274e6285335f8484031f06522ce1fe2.tar.zst gsoc2013-evolution-37f85438b274e6285335f8484031f06522ce1fe2.zip |
use x-evolution-any-field.
2000-08-08 Chris Toshok <toshok@helixcode.com>
* gui/component/e-addressbook-model.c (e_addressbook_model_init):
use x-evolution-any-field.
* gui/component/addressbook.c (search_entry_activated): use
x-evolution-any-field.
(change_view_type): same.
* gui/minicard/e-minicard-view.c (e_minicard_view_init): set query
to x-evolution-any-field.
* backend/pas/pas-backend-ldap.c (func_contains): support
x-evolution-any-field for matching any evolution supported field.
* backend/pas/pas-backend-file.c (compare_email): switch to using
ECardSimple calls.
(compare_phone): same.
(compare_address): same.
(entry_compare): switch to using ECardSimple calls, and support a
'x-evolution-any-field' wildcard field.
(vcard_matches_search): use an ECardSimple.
svn path=/trunk/; revision=4626
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/component/addressbook.c | 4 | ||||
-rw-r--r-- | addressbook/gui/component/e-addressbook-model.c | 2 | ||||
-rw-r--r-- | addressbook/gui/minicard/e-minicard-view.c | 2 | ||||
-rw-r--r-- | addressbook/gui/widgets/e-addressbook-model.c | 2 | ||||
-rw-r--r-- | addressbook/gui/widgets/e-minicard-view.c | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index bf2b054280..d25e41c313 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -438,7 +438,7 @@ search_entry_activated (GtkWidget* widget, gpointer user_data) if (search_word && strlen (search_word)) search_query = g_strdup_printf ( - "(or (contains \"full_name\" \"%s\") (contains \"org\" \"%s\"))", + "(contains \"x-evolution-any-field\" \"%s\")", search_word, search_word); else search_query = g_strdup ( @@ -1023,7 +1023,7 @@ change_view_type (AddressbookView *view, AddressbookViewType view_type) if (view->view_type != ADDRESSBOOK_VIEW_NONE) query = get_query(view); else - query = g_strdup("(contains \"full_name\" \"\")"); + query = g_strdup("(contains \"x-evolution-any-field\" \"\")"); switch (view_type) { diff --git a/addressbook/gui/component/e-addressbook-model.c b/addressbook/gui/component/e-addressbook-model.c index 87b872784c..d46b42fe00 100644 --- a/addressbook/gui/component/e-addressbook-model.c +++ b/addressbook/gui/component/e-addressbook-model.c @@ -254,7 +254,7 @@ e_addressbook_model_init (GtkObject *object) { EAddressbookModel *model = E_ADDRESSBOOK_MODEL(object); model->book = NULL; - model->query = g_strdup("(contains \"full_name\" \"\")"); + model->query = g_strdup("(contains \"x-evolution-any-field\" \"\")"); model->book_view = NULL; model->get_view_idle = 0; model->create_card_id = 0; diff --git a/addressbook/gui/minicard/e-minicard-view.c b/addressbook/gui/minicard/e-minicard-view.c index 28f8243dff..8e275bdb2b 100644 --- a/addressbook/gui/minicard/e-minicard-view.c +++ b/addressbook/gui/minicard/e-minicard-view.c @@ -98,7 +98,7 @@ static void e_minicard_view_init (EMinicardView *view) { view->book = NULL; - view->query = g_strdup("(contains \"full_name\" \"\")"); + view->query = g_strdup("(contains \"x-evolution-any-field\" \"\")"); view->book_view = NULL; view->get_view_idle = 0; view->create_card_id = 0; diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c index 87b872784c..d46b42fe00 100644 --- a/addressbook/gui/widgets/e-addressbook-model.c +++ b/addressbook/gui/widgets/e-addressbook-model.c @@ -254,7 +254,7 @@ e_addressbook_model_init (GtkObject *object) { EAddressbookModel *model = E_ADDRESSBOOK_MODEL(object); model->book = NULL; - model->query = g_strdup("(contains \"full_name\" \"\")"); + model->query = g_strdup("(contains \"x-evolution-any-field\" \"\")"); model->book_view = NULL; model->get_view_idle = 0; model->create_card_id = 0; diff --git a/addressbook/gui/widgets/e-minicard-view.c b/addressbook/gui/widgets/e-minicard-view.c index 28f8243dff..8e275bdb2b 100644 --- a/addressbook/gui/widgets/e-minicard-view.c +++ b/addressbook/gui/widgets/e-minicard-view.c @@ -98,7 +98,7 @@ static void e_minicard_view_init (EMinicardView *view) { view->book = NULL; - view->query = g_strdup("(contains \"full_name\" \"\")"); + view->query = g_strdup("(contains \"x-evolution-any-field\" \"\")"); view->book_view = NULL; view->get_view_idle = 0; view->create_card_id = 0; |