[gnome-calendar] manager: syncronize sources at startup
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] manager: syncronize sources at startup
- Date: Sat, 3 Jan 2015 15:11:09 +0000 (UTC)
commit 6915522ecc7b05816c17e1de33f75f35fd1d7a92
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Jan 3 13:08:47 2015 -0200
manager: syncronize sources at startup
As proposed by the design team, Calendar should update the sources at startup time.
src/gcal-manager.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-manager.c b/src/gcal-manager.c
index 7ae8d0b..3acc665 100644
--- a/src/gcal-manager.c
+++ b/src/gcal-manager.c
@@ -311,6 +311,13 @@ on_client_connected (GObject *source_object,
e_cal_data_model_add_client (priv->e_data_model, client);
e_cal_data_model_add_client (priv->search_data_model, client);
}
+
+ /* refresh client when it's added */
+ if (unit->enabled && e_client_check_refresh_supported (E_CLIENT (client)))
+ {
+ e_client_refresh (E_CLIENT (client), NULL, on_client_refreshed, user_data);
+ }
+
g_signal_emit (GCAL_MANAGER (user_data), signals[SOURCE_ADDED], 0, source, unit->enabled);
g_clear_object (&client);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]