[gtk+] app chooser: sync sensitivity of search button



commit f55d210c1211c09f7169e0c9ef306f8e67e67279
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Feb 14 09:39:49 2014 -0500

    app chooser: sync sensitivity of search button
    
    The code setting up the button has been move a little later
    in the dialog construction, with the effect that the entry
    is already insensitive when we set up the binding.

 gtk/gtkappchooserdialog.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkappchooserdialog.c b/gtk/gtkappchooserdialog.c
index d2cd081..8074312 100644
--- a/gtk/gtkappchooserdialog.c
+++ b/gtk/gtkappchooserdialog.c
@@ -493,9 +493,9 @@ setup_search (GtkAppChooserDialog *self)
       g_object_bind_property (button, "active",
                               self->priv->search_bar, "search-mode-enabled",
                               G_BINDING_BIDIRECTIONAL);
-      g_object_bind_property (button, "sensitive",
-                              self->priv->search_entry, "sensitive",
-                              G_BINDING_BIDIRECTIONAL);
+      g_object_bind_property (self->priv->search_entry, "sensitive",
+                              button, "sensitive",
+                              G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
     }
 }
 


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