aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2004-03-03 19:16:48 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2004-03-03 19:16:48 +0800
commitccd2433096a816b180a90a4956e154d4c62a3708 (patch)
treef082aba6590189a5299ade2d5ba18ba3df19b94f /camel/providers
parent0358c73b0228f3dbf0e79d2bb3242db9d1f69942 (diff)
downloadgsoc2013-evolution-ccd2433096a816b180a90a4956e154d4c62a3708.tar
gsoc2013-evolution-ccd2433096a816b180a90a4956e154d4c62a3708.tar.gz
gsoc2013-evolution-ccd2433096a816b180a90a4956e154d4c62a3708.tar.bz2
gsoc2013-evolution-ccd2433096a816b180a90a4956e154d4c62a3708.tar.lz
gsoc2013-evolution-ccd2433096a816b180a90a4956e154d4c62a3708.tar.xz
gsoc2013-evolution-ccd2433096a816b180a90a4956e154d4c62a3708.tar.zst
gsoc2013-evolution-ccd2433096a816b180a90a4956e154d4c62a3708.zip
use "Calendar" and "Checklist" for the folder names, instead of "Default".
2004-03-03 Rodrigo Moya <rodrigo@ximian.com> * 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
Diffstat (limited to 'camel/providers')
-rw-r--r--camel/providers/groupwise/camel-gw-listener.c15
1 files changed, 7 insertions, 8 deletions
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);
}