+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:
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;