[gnome-calendar] window: show the search popover when the entry is mapped



commit d65f01c3f236a78c6b9318be9a33f717534842c3
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Jan 8 12:27:54 2015 -0200

    window: show the search popover when the entry is mapped
    
    This avois the flickering of the popover trying to reach an unmaped widget.

 src/gcal-window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 3881d52..286e3a5 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -1336,8 +1336,8 @@ gcal_window_constructed (GObject *object)
 
   g_object_bind_property (GCAL_WINDOW (object), "active-date", priv->views[GCAL_WINDOW_VIEW_SEARCH], 
"active-date",
                           G_BINDING_DEFAULT | G_BINDING_SYNC_CREATE);
-  g_object_bind_property (GTK_TOGGLE_BUTTON (priv->search_button), "active", 
priv->views[GCAL_WINDOW_VIEW_SEARCH],
-                          "visible", G_BINDING_DEFAULT);
+  g_object_bind_property (gtk_bin_get_child (GTK_BIN (priv->search_bar)), "child-revealed",
+                          priv->views[GCAL_WINDOW_VIEW_SEARCH], "visible", G_BINDING_DEFAULT);
 
   /* signals connection/handling */
   /* HACK to ensure proper destroy of search-view widget */


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