From cd872d42ed1ca52c3b37967c88726c77e02edee4 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 6 May 2015 08:35:10 -0300 Subject: [PATCH] manager: load GOA client at construction time --- src/gcal-manager.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gcal-manager.c b/src/gcal-manager.c index 37253f6d..c4059bd3 100644 --- a/src/gcal-manager.c +++ b/src/gcal-manager.c @@ -718,9 +718,7 @@ gcal_manager_client_ready_cb (GObject *source, static void gcal_manager_init (GcalManager *self) { - goa_client_new (NULL, // we won't really cancel it - (GAsyncReadyCallback) gcal_manager_client_ready_cb, - self); + ; } static void @@ -742,6 +740,11 @@ gcal_manager_constructed (GObject *object) priv->clients = g_hash_table_new_full ((GHashFunc) e_source_hash, (GEqualFunc) e_source_equal, g_object_unref, (GDestroyNotify) free_unit_data); + /* load GOA client */ + goa_client_new (NULL, // we won't really cancel it + (GAsyncReadyCallback) gcal_manager_client_ready_cb, + object); + /* reading sources and schedule its connecting */ priv->source_registry = e_source_registry_new_sync (NULL, &error); if (priv->source_registry == NULL)