[evolution-data-server] Bug #659184 - Contacts calendar backend doesn't show events
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #659184 - Contacts calendar backend doesn't show events
- Date: Mon, 19 Sep 2011 09:34:46 +0000 (UTC)
commit 23b0fb32b96f88864dae9c498471995e71f1c01d
Author: Milan Crha <mcrha redhat com>
Date: Mon Sep 19 11:33:45 2011 +0200
Bug #659184 - Contacts calendar backend doesn't show events
addressbook/libedata-book/e-book-backend-sexp.c | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-backend-sexp.c b/addressbook/libedata-book/e-book-backend-sexp.c
index b53f079..2602fbb 100644
--- a/addressbook/libedata-book/e-book-backend-sexp.c
+++ b/addressbook/libedata-book/e-book-backend-sexp.c
@@ -437,6 +437,11 @@ entry_compare (SearchContext *ctx,
truth = compare_date (date, argv[1]->value.string, compare);
e_contact_date_free (date);
}
+ } else {
+ g_warn_if_reached ();
+
+ saw_any = FALSE;
+ break;
}
/* if we're looking at all fields and find a match,
@@ -836,9 +841,23 @@ func_exists (struct _ESExp *f,
truth = TRUE;
}
else if (info->prop_type == PROP_TYPE_LIST) {
- /* the special searches that match any of the list elements */
+ /* the special searches that match any of the list elements */
truth = info->list_compare (ctx->contact, "", exists_helper);
}
+ else if (info->prop_type == PROP_TYPE_DATE) {
+ EContactDate *date;
+
+ date = e_contact_get (ctx->contact, info->field_id);
+
+ if (date) {
+ truth = TRUE;
+ e_contact_date_free (date);
+ }
+ } else {
+ g_warn_if_reached ();
+
+ saw_any = FALSE;
+ }
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]