diff options
author | Chris Toshok <toshok@src.gnome.org> | 2000-04-11 06:09:27 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2000-04-11 06:09:27 +0800 |
commit | 467a428552be04aa70c9c9ed860e226f400834ef (patch) | |
tree | 2ee888dc7f05c095f1ae1b88e2701983eef19e38 /addressbook/gui | |
parent | ce76b4034c6ad5b74e69d1f687b9789d649b9c02 (diff) | |
download | gsoc2013-evolution-467a428552be04aa70c9c9ed860e226f400834ef.tar gsoc2013-evolution-467a428552be04aa70c9c9ed860e226f400834ef.tar.gz gsoc2013-evolution-467a428552be04aa70c9c9ed860e226f400834ef.tar.bz2 gsoc2013-evolution-467a428552be04aa70c9c9ed860e226f400834ef.tar.lz gsoc2013-evolution-467a428552be04aa70c9c9ed860e226f400834ef.tar.xz gsoc2013-evolution-467a428552be04aa70c9c9ed860e226f400834ef.tar.zst gsoc2013-evolution-467a428552be04aa70c9c9ed860e226f400834ef.zip |
change the empty search string ("") to the valid (contains "full_name"
* addressbook/gui/minicard/e-minicard-view.c (get_view): change
the empty search string ("") to the valid (contains "full_name" "").
* wombat/Makefile.am (wombat_LDADD): reorder so libeutil.la comes
after libpas (since it uses the sexp stuff now.)
* addressbook/backend/pas/Makefile.am (INCLUDES): add
-I$(top_srcdir)/addressbook/backend/ebook
* addressbook/backend/pas/pas-backend-file.c
(view_destroy): free the search context and unref the sexp.
(string_to_dbt): save the zero byte of strings, so we don't have
to g_strndup everywhere.
(func_contains): new function, implementing the (contains) search
function.
(vcard_matches_search): generic predicate to tell whether or not a
vcard entry matches the current book view.
(pas_backend_file_search): rip some of this code out of
get_book_view (the portion building the list of cards) and make it
use the e-sexp stuff.
(pas_backend_file_process_create_card): use vcard_matches_search
to only notify if the card will appear in the view.
(pas_backend_file_process_remove_card): use vcard_matches_search
to only notify if the card will be removed from the view.
(pas_backend_file_process_modify_card): use vcard_matches_search
to notify if the modified card was added, removed, or changed in
the view.
svn path=/trunk/; revision=2382
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/minicard/e-minicard-view.c | 2 | ||||
-rw-r--r-- | addressbook/gui/widgets/e-minicard-view.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/addressbook/gui/minicard/e-minicard-view.c b/addressbook/gui/minicard/e-minicard-view.c index 6e7b432a8e..36a9215878 100644 --- a/addressbook/gui/minicard/e-minicard-view.c +++ b/addressbook/gui/minicard/e-minicard-view.c @@ -170,7 +170,7 @@ static gboolean get_view(EMinicardView *view) { E_REFLOW(view)->items = NULL; - e_book_get_book_view(view->book, "", book_view_loaded, view); + e_book_get_book_view(view->book, "(contains \"full_name\" \"\")", book_view_loaded, view); view->get_view_idle = 0; return FALSE; diff --git a/addressbook/gui/widgets/e-minicard-view.c b/addressbook/gui/widgets/e-minicard-view.c index 6e7b432a8e..36a9215878 100644 --- a/addressbook/gui/widgets/e-minicard-view.c +++ b/addressbook/gui/widgets/e-minicard-view.c @@ -170,7 +170,7 @@ static gboolean get_view(EMinicardView *view) { E_REFLOW(view)->items = NULL; - e_book_get_book_view(view->book, "", book_view_loaded, view); + e_book_get_book_view(view->book, "(contains \"full_name\" \"\")", book_view_loaded, view); view->get_view_idle = 0; return FALSE; |