[gtk+/gtk-3-10] infobar: Fix visibility when enable-animations=false



commit c12d7c7e7b766cb86ad933f5cd778b00cf0ade6f
Author: Christian Persch <chpe gnome org>
Date:   Fri Nov 29 13:13:34 2013 +0100

    infobar: Fix visibility when enable-animations=false
    
    When enable-animations is false, the revealer's child-revealed property is
    notified immediately, so make sure to connect to it before toggling the
    revealer.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=719510
    (cherry picked from commit cc3c737088e3ac2be323cbcbfeb3a57551d14adf)

 gtk/gtkinfobar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c
index 396a087..8e99b16 100644
--- a/gtk/gtkinfobar.c
+++ b/gtk/gtkinfobar.c
@@ -404,9 +404,9 @@ gtk_info_bar_hide (GtkWidget *widget)
 {
   GtkInfoBarPrivate *priv = GTK_INFO_BAR (widget)->priv;
 
-  gtk_revealer_set_reveal_child (GTK_REVEALER (priv->revealer), FALSE);
   g_signal_connect_object (priv->revealer, "notify::child-revealed",
                            G_CALLBACK (child_revealed), widget, 0);
+  gtk_revealer_set_reveal_child (GTK_REVEALER (priv->revealer), FALSE);
 }
 
 static void


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