[gnome-calendar] Used timezone support at initial date retrieving.
- From: Erick PÃrez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] Used timezone support at initial date retrieving.
- Date: Thu, 23 Aug 2012 13:46:26 +0000 (UTC)
commit 5eadc377a4effc9c0a41e5b0d167450e520f2cf5
Author: Erick PÃrez Castellanos <erick red gmail com>
Date: Thu Aug 23 09:39:41 2012 -0400
Used timezone support at initial date retrieving.
src/gcal-window.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 5825fcc..363024e 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -216,9 +216,7 @@ gcal_window_constructed (GObject *object)
/* internal data init */
priv->event_to_delete = NULL;
- /* FIXME: here read the initial date from somewehere */
priv->active_date = g_new (icaltimetype, 1);
- *(priv->active_date) = icaltime_from_timet (time (NULL), 0);
/* ui init */
embed = gtk_clutter_embed_new ();
@@ -1123,8 +1121,13 @@ gcal_window_new_with_view (GcalApplication *app,
NULL);
gcal_window_set_sources_view (win);
- /* hooking signals */
manager = gcal_window_get_manager (win);
+
+ /* FIXME: here read the initial date from somewehere */
+ *(win->priv->active_date) =
+ icaltime_current_time_with_zone (gcal_manager_get_system_timezone (manager));
+
+ /* hooking signals */
g_signal_connect (manager,
"events-added",
G_CALLBACK (gcal_window_events_added),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]