From ccd2433096a816b180a90a4956e154d4c62a3708 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Wed, 3 Mar 2004 11:16:48 +0000 Subject: use "Calendar" and "Checklist" for the folder names, instead of "Default". 2004-03-03 Rodrigo Moya * providers/groupwise/camel-gw-listener.c (add_calendar_tasks_sources): use "Calendar" and "Checklist" for the folder names, instead of "Default". (remove_calendar_tasks_sources): remove the correct folder. svn path=/trunk/; revision=24949 --- camel/ChangeLog | 7 +++++++ camel/providers/groupwise/camel-gw-listener.c | 15 +++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index db88be3994..53d830aaa5 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,10 @@ +2004-03-03 Rodrigo Moya + + * providers/groupwise/camel-gw-listener.c + (add_calendar_tasks_sources): use "Calendar" and "Checklist" for the + folder names, instead of "Default". + (remove_calendar_tasks_sources): remove the correct folder. + 2004-03-03 Not Zed * camel-operation.c (camel_operation_uncancel): attempt at diff --git a/camel/providers/groupwise/camel-gw-listener.c b/camel/providers/groupwise/camel-gw-listener.c index da11be41fb..dbf2e03776 100644 --- a/camel/providers/groupwise/camel-gw-listener.c +++ b/camel/providers/groupwise/camel-gw-listener.c @@ -247,7 +247,6 @@ modify_esource (const char* conf_key, GwAccountInfo *old_account_info, const cha /* FIXME: don't hard-code the port number */ old_relative_uri = g_strdup_printf ("%s:7181/soap", url->host); - list = e_source_list_new_for_gconf (gconf_client_get_default (), conf_key); groups = e_source_list_peek_groups (list); @@ -258,8 +257,8 @@ modify_esource (const char* conf_key, GwAccountInfo *old_account_info, const cha group = E_SOURCE_GROUP (groups->data); if (strcmp (e_source_group_peek_name (group), old_account_info->name) == 0 && - strcmp (e_source_group_peek_base_uri (group), GROUPWISE_URI_PREFIX) == 0) { - + strcmp (e_source_group_peek_base_uri (group), GROUPWISE_URI_PREFIX) == 0) { + sources = e_source_group_peek_sources (group); for ( ; sources != NULL; sources = g_slist_next (sources)) { @@ -296,8 +295,8 @@ add_calendar_tasks_sources (GwAccountInfo *info) url = camel_url_new (info->source_url, NULL); /* FIXME: don't hard-code the port number */ relative_uri = g_strdup_printf ("%s:7181/soap", url->host); - add_esource ("/apps/evolution/calendar/sources", info->name, N_("Default"), url->user, relative_uri); - add_esource ("/apps/evolution/tasks/sources", info->name, N_("Default"), url->user, relative_uri); + add_esource ("/apps/evolution/calendar/sources", info->name, _("Calendar"), url->user, relative_uri); + add_esource ("/apps/evolution/tasks/sources", info->name, _("Checklist"), url->user, relative_uri); groupwise_accounts = g_list_append (groupwise_accounts, info); @@ -320,8 +319,8 @@ remove_calendar_tasks_sources (GwAccountInfo *info) relative_uri = g_strdup_printf ("%s:7181/soap", url->host); - remove_esource ("/apps/evolution/calendar/sources", info->name, "Default", relative_uri); - remove_esource ("/apps/evolution/tasks/sources", info->name, "Default", relative_uri); + remove_esource ("/apps/evolution/calendar/sources", info->name, _("Calendar"), relative_uri); + remove_esource ("/apps/evolution/tasks/sources", info->name, _("Checklist"), relative_uri); g_free (info->uid); g_free (info->name); @@ -483,7 +482,7 @@ account_added (EAccountList *account_listener, EAccount *account) info->uid = g_strdup (account->uid); info->name = g_strdup (account->name); info->source_url = g_strdup (account->source->url); - + add_calendar_tasks_sources (info); add_ldap_addressbook_source(account); } -- cgit v1.2.3