summaryrefslogtreecommitdiff
path: root/calendar
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchen@src.gnome.org>2007-08-30 08:07:07 +0000
committerChenthill Palanisamy <pchen@src.gnome.org>2007-08-30 08:07:07 +0000
commit79ebf912c19ddcafd557d37d581c32d7fac94863 (patch)
treeda7675788d71ba124956164306e470d0bd801311 /calendar
parent79bbcb66f0ef1b242d4526199e928a4cdac1ebe2 (diff)
downloadevolution-data-server-79ebf912c19ddcafd557d37d581c32d7fac94863.tar.gz
Fixes #298095 (bnc)
svn path=/trunk/; revision=8018
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog8
-rw-r--r--calendar/backends/groupwise/e-cal-backend-groupwise.c5
2 files changed, 11 insertions, 2 deletions
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 <pchenthill@novell.com>
+
+ 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 <ross@openedhand.com>
* 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;