summaryrefslogtreecommitdiff
path: root/calendar/backends
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/backends
parent79bbcb66f0ef1b242d4526199e928a4cdac1ebe2 (diff)
downloadevolution-data-server-79ebf912c19ddcafd557d37d581c32d7fac94863.tar.gz
Fixes #298095 (bnc)
svn path=/trunk/; revision=8018
Diffstat (limited to 'calendar/backends')
-rw-r--r--calendar/backends/groupwise/e-cal-backend-groupwise.c5
1 files changed, 3 insertions, 2 deletions
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;