diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2004-03-03 19:16:48 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2004-03-03 19:16:48 +0800 |
commit | ccd2433096a816b180a90a4956e154d4c62a3708 (patch) | |
tree | f082aba6590189a5299ade2d5ba18ba3df19b94f | |
parent | 0358c73b0228f3dbf0e79d2bb3242db9d1f69942 (diff) | |
download | gsoc2013-evolution-ccd2433096a816b180a90a4956e154d4c62a3708.tar.gz 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
-rw-r--r-- | camel/ChangeLog | 7 | ||||
-rw-r--r-- | camel/providers/groupwise/camel-gw-listener.c | 15 | ||||
-rw-r--r-- | plugins/groupwise-account-setup/camel-gw-listener.c | 15 |
3 files changed, 21 insertions, 16 deletions
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 <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. + 2004-03-03 Not Zed <NotZed@Ximian.com> * 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); } diff --git a/plugins/groupwise-account-setup/camel-gw-listener.c b/plugins/groupwise-account-setup/camel-gw-listener.c index da11be41fb..dbf2e03776 100644 --- a/plugins/groupwise-account-setup/camel-gw-listener.c +++ b/plugins/groupwise-account-setup/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); } |