From 79ebf912c19ddcafd557d37d581c32d7fac94863 Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Thu, 30 Aug 2007 08:07:07 +0000 Subject: Fixes #298095 (bnc) svn path=/trunk/; revision=8018 --- calendar/ChangeLog | 8 ++++++++ calendar/backends/groupwise/e-cal-backend-groupwise.c | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 3c93b905a..169f03d83 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +2007-08-30 Chenthill Palanisamy + + Fixes #298095 (bnc) + * backends/groupwise/e-cal-backend-groupwise.c: + (set_container_id_with_count): Compare if the folder + is a system folder and calendar type to identify the + system calendar. + 2007-08-28 Ross Burton * backends/file/e-cal-backend-file-todo.c: diff --git a/calendar/backends/groupwise/e-cal-backend-groupwise.c b/calendar/backends/groupwise/e-cal-backend-groupwise.c index 6133a390b..21bbc0e39 100644 --- a/calendar/backends/groupwise/e-cal-backend-groupwise.c +++ b/calendar/backends/groupwise/e-cal-backend-groupwise.c @@ -801,9 +801,10 @@ set_container_id_with_count (ECalBackendGroupwise *cbgw) res = GNOME_Evolution_Calendar_ObjectNotFound; for (l = container_list; l != NULL; l = l->next) { EGwContainer *container = E_GW_CONTAINER (l->data); - const char *name = e_gw_container_get_name (container); - if (name && strcmp (name, "Calendar") == 0) { + if (e_gw_container_get_is_system_folder (container) && + e_gw_container_get_container_type (container) == E_GW_CONTAINER_TYPE_CALENDAR) { + priv->container_id = g_strdup (e_gw_container_get_id (container)); priv->total_count = e_gw_container_get_total_count (container); res = GNOME_Evolution_Calendar_Success; -- cgit v1.2.1