manager: load GOA client at construction time

This commit is contained in:
Georges Basile Stavracas Neto
2015-05-25 12:35:58 -04:00
committed by Erick Pérez Castellanos
parent 27fa9983f4
commit cd872d42ed
+6 -3
View File
@@ -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)