[gnome-calendar/ui-rewrite] window: update date on view on binding creation



commit 73fe7a015171637f8c1d2a3f267e85f89f4d6510
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Wed Oct 22 00:40:53 2014 -0400

    window: update date on view on binding creation
    
    Ensure the views has events widgets in it for the first time the user
    clicks on it.

 src/gcal-window.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index ed177b0..12d2711 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -986,7 +986,7 @@ gcal_window_constructed (GObject *object)
                         "week", _("Week"));
   g_object_bind_property (GCAL_WINDOW (object), "active-date",
                           priv->views[GCAL_WINDOW_VIEW_WEEK], "active-date",
-                          G_BINDING_DEFAULT);
+                          G_BINDING_DEFAULT | G_BINDING_SYNC_CREATE);
 
   priv->views[GCAL_WINDOW_VIEW_MONTH] =
     gcal_month_view_new (priv->manager);
@@ -995,7 +995,7 @@ gcal_window_constructed (GObject *object)
                         "month", _("Month"));
   g_object_bind_property (GCAL_WINDOW (object), "active-date",
                           priv->views[GCAL_WINDOW_VIEW_MONTH], "active-date",
-                          G_BINDING_DEFAULT);
+                          G_BINDING_DEFAULT | G_BINDING_SYNC_CREATE);
 
   priv->views[GCAL_WINDOW_VIEW_YEAR] =
     gcal_year_view_new (priv->manager);
@@ -1004,7 +1004,7 @@ gcal_window_constructed (GObject *object)
                         "year", _("Year"));
   g_object_bind_property (GCAL_WINDOW (object), "active-date",
                           priv->views[GCAL_WINDOW_VIEW_YEAR], "active-date",
-                          G_BINDING_DEFAULT);
+                          G_BINDING_DEFAULT | G_BINDING_SYNC_CREATE);
 
   gtk_stack_switcher_set_stack (GTK_STACK_SWITCHER (priv->views_switcher),
                                 GTK_STACK (priv->views_stack));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]