From 123c91f2412a0937ce1f55c4c7dda96fb0de5f5a Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 2 Mar 2012 11:46:51 +0100 Subject: Bug #663745 - Option to create Google Calendar not available --- plugins/webdav-account-setup/Makefile.am | 1 + plugins/webdav-account-setup/webdav-contacts-source.c | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'plugins/webdav-account-setup') diff --git a/plugins/webdav-account-setup/Makefile.am b/plugins/webdav-account-setup/Makefile.am index d4d9d006aa..58c9b91d7e 100644 --- a/plugins/webdav-account-setup/Makefile.am +++ b/plugins/webdav-account-setup/Makefile.am @@ -16,6 +16,7 @@ liborg_gnome_evolution_webdav_la_SOURCES = \ liborg_gnome_evolution_webdav_la_LIBADD = \ $(top_builddir)/e-util/libeutil.la \ + $(top_builddir)/shell/libeshell.la \ $(EVOLUTION_DATA_SERVER_LIBS) \ $(GNOME_PLATFORM_LIBS) diff --git a/plugins/webdav-account-setup/webdav-contacts-source.c b/plugins/webdav-account-setup/webdav-contacts-source.c index b611852db3..f81abe3e24 100644 --- a/plugins/webdav-account-setup/webdav-contacts-source.c +++ b/plugins/webdav-account-setup/webdav-contacts-source.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include @@ -57,14 +58,14 @@ e_plugin_lib_enable (EPlugin *ep, static void ensure_webdav_contacts_source_group (void) { - ESourceList *source_list; + EShellBackend *backend; + ESourceList *source_list = NULL; - source_list = e_source_list_new_for_gconf_default ( - "/apps/evolution/addressbook/sources"); + backend = e_shell_get_backend_by_name (e_shell_get_default (), "contacts"); + g_return_if_fail (backend != NULL); - if (source_list == NULL) { - return; - } + g_object_get (G_OBJECT (backend), "source-list", &source_list, NULL); + g_return_if_fail (source_list != NULL); e_source_list_ensure_group (source_list, _("WebDAV"), BASE_URI, FALSE); g_object_unref (source_list); -- cgit v1.2.3