manager: load GOA client at construction time
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
27fa9983f4
commit
cd872d42ed
+6
-3
@@ -718,9 +718,7 @@ gcal_manager_client_ready_cb (GObject *source,
|
|||||||
static void
|
static void
|
||||||
gcal_manager_init (GcalManager *self)
|
gcal_manager_init (GcalManager *self)
|
||||||
{
|
{
|
||||||
goa_client_new (NULL, // we won't really cancel it
|
;
|
||||||
(GAsyncReadyCallback) gcal_manager_client_ready_cb,
|
|
||||||
self);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
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,
|
priv->clients = g_hash_table_new_full ((GHashFunc) e_source_hash, (GEqualFunc) e_source_equal,
|
||||||
g_object_unref, (GDestroyNotify) free_unit_data);
|
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 */
|
/* reading sources and schedule its connecting */
|
||||||
priv->source_registry = e_source_registry_new_sync (NULL, &error);
|
priv->source_registry = e_source_registry_new_sync (NULL, &error);
|
||||||
if (priv->source_registry == NULL)
|
if (priv->source_registry == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user