[gnome-calendar] manager: load GOA client at construction time
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] manager: load GOA client at construction time
- Date: Mon, 25 May 2015 17:02:10 +0000 (UTC)
commit cd872d42ed1ca52c3b37967c88726c77e02edee4
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed May 6 08:35:10 2015 -0300
manager: load GOA client at construction time
src/gcal-manager.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/gcal-manager.c b/src/gcal-manager.c
index 37253f6..c4059bd 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]