[evolution-data-server] Bug #668639 - Sexps on VEVENT / VJOURNAL statuses are not supported



commit 11ea85c85051a4544240830d6f83bd18c9d6d5a5
Author: Christophe Dumez <christophe dumez intel com>
Date:   Wed Jan 25 09:23:13 2012 +0200

    Bug #668639 - Sexps on VEVENT / VJOURNAL statuses are not supported
    
    Sexps such as (contains? "status" "CONFIRMED") did not work before
    this fix.

 calendar/libedata-cal/e-cal-backend-sexp.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/calendar/libedata-cal/e-cal-backend-sexp.c b/calendar/libedata-cal/e-cal-backend-sexp.c
index 280b2d1..7f3aaf3 100644
--- a/calendar/libedata-cal/e-cal-backend-sexp.c
+++ b/calendar/libedata-cal/e-cal-backend-sexp.c
@@ -792,6 +792,16 @@ matches_status (ECalComponent *comp ,const gchar *str)
 			return TRUE;
 	else if (g_str_equal (str, "IN PROGRESS")  && status == ICAL_STATUS_INPROCESS)
 			return TRUE;
+	else if (g_str_equal (str, "NEEDS ACTION")  && status == ICAL_STATUS_NEEDSACTION)
+			return TRUE;
+	else if (g_str_equal (str, "TENTATIVE")  && status == ICAL_STATUS_TENTATIVE)
+			return TRUE;
+	else if (g_str_equal (str, "CONFIRMED")  && status == ICAL_STATUS_CONFIRMED)
+			return TRUE;
+	else if (g_str_equal (str, "DRAFT")  && status == ICAL_STATUS_DRAFT)
+			return TRUE;
+	else if (g_str_equal (str, "FINAL")  && status == ICAL_STATUS_FINAL)
+			return TRUE;
 
 	return FALSE;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]