aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/google-account-setup/google-contacts-source.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-03-02 18:46:51 +0800
committerMilan Crha <mcrha@redhat.com>2012-03-02 18:47:34 +0800
commit123c91f2412a0937ce1f55c4c7dda96fb0de5f5a (patch)
tree0d16eac9697452a211a1a03f383e2f0a53dd05cd /plugins/google-account-setup/google-contacts-source.c
parent89f5daa12878d33fecfd059c384a8b8ed6b08826 (diff)
downloadgsoc2013-evolution-123c91f2412a0937ce1f55c4c7dda96fb0de5f5a.tar
gsoc2013-evolution-123c91f2412a0937ce1f55c4c7dda96fb0de5f5a.tar.gz
gsoc2013-evolution-123c91f2412a0937ce1f55c4c7dda96fb0de5f5a.tar.bz2
gsoc2013-evolution-123c91f2412a0937ce1f55c4c7dda96fb0de5f5a.tar.lz
gsoc2013-evolution-123c91f2412a0937ce1f55c4c7dda96fb0de5f5a.tar.xz
gsoc2013-evolution-123c91f2412a0937ce1f55c4c7dda96fb0de5f5a.tar.zst
gsoc2013-evolution-123c91f2412a0937ce1f55c4c7dda96fb0de5f5a.zip
Bug #663745 - Option to create Google Calendar not available
Diffstat (limited to 'plugins/google-account-setup/google-contacts-source.c')
-rw-r--r--plugins/google-account-setup/google-contacts-source.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/google-account-setup/google-contacts-source.c b/plugins/google-account-setup/google-contacts-source.c
index 5653881899..9345deba57 100644
--- a/plugins/google-account-setup/google-contacts-source.c
+++ b/plugins/google-account-setup/google-contacts-source.c
@@ -30,6 +30,7 @@
#include <e-util/e-config.h>
#include <e-util/e-plugin.h>
+#include <shell/e-shell.h>
#include <addressbook/gui/widgets/eab-config.h>
#include <libedataserver/e-source.h>
@@ -42,17 +43,16 @@
void
ensure_google_contacts_source_group (void)
{
- ESourceList *source_list;
- const gchar *key;
+ EShellBackend *backend;
+ ESourceList *source_list = NULL;
- key = "/apps/evolution/addressbook/sources";
- source_list = e_source_list_new_for_gconf_default (key);
+ 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, _("Google"), "google://", FALSE);
+ e_source_list_ensure_group (source_list, _("Google"), "google://", FALSE);
g_object_unref (source_list);
}