Fixes #298095 (bnc)
authorChenthill Palanisamy <pchen@src.gnome.org>
Thu, 30 Aug 2007 08:07:07 +0000 (08:07 +0000)
committerChenthill Palanisamy <pchen@src.gnome.org>
Thu, 30 Aug 2007 08:07:07 +0000 (08:07 +0000)
svn path=/trunk/; revision=8018

calendar/ChangeLog
calendar/backends/groupwise/e-cal-backend-groupwise.c

index 3c93b90..169f03d 100644 (file)
@@ -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:
index 6133a39..21bbc0e 100644 (file)
@@ -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;