From 8ff75ba9e64520cd7d29dd267ee03dafad96518a Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Mon, 2 Feb 2004 11:05:00 +0000 Subject: [PATCH] set the ESource's name to the name of the folder. 2004-02-02 Rodrigo Moya * backends/groupwise/e-cal-backend-groupwise.c (connect_to_server): set the ESource's name to the name of the folder. --- calendar/ChangeLog | 5 +++++ calendar/backends/groupwise/e-cal-backend-groupwise.c | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 4aed2c1..3696ff6 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2004-02-02 Rodrigo Moya + + * backends/groupwise/e-cal-backend-groupwise.c (connect_to_server): + set the ESource's name to the name of the folder. + 2004-02-01 JP Rosevear * libecal/e-cal.h: order the signals more sensibly diff --git a/calendar/backends/groupwise/e-cal-backend-groupwise.c b/calendar/backends/groupwise/e-cal-backend-groupwise.c index 0f64198..e7a0605 100644 --- a/calendar/backends/groupwise/e-cal-backend-groupwise.c +++ b/calendar/backends/groupwise/e-cal-backend-groupwise.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -154,11 +155,13 @@ connect_to_server (ECalBackendGroupwise *cbgw) g_free (priv->container_id); kind = e_cal_backend_get_kind (E_CAL_BACKEND (cbgw)); - if (kind == ICAL_VEVENT_COMPONENT) + if (kind == ICAL_VEVENT_COMPONENT) { priv->container_id = e_gw_connection_get_container_id (priv->cnc, "Calendar"); - else if (kind == ICAL_VTODO_COMPONENT) + e_source_set_name (e_cal_backend_get_source (E_CAL_BACKEND (cbgw)), _("Calendar")); + } else if (kind == ICAL_VTODO_COMPONENT) { priv->container_id = e_gw_connection_get_container_id (priv->cnc, "Checklist"); - else + e_source_set_name (e_cal_backend_get_source (E_CAL_BACKEND (cbgw)), _("Checklist")); + } else priv->container_id = NULL; /* Populate the cache for the first time.*/ -- 2.7.4