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
This commit is contained in:
Christian Persch 2013-11-29 13:13:34 +01:00
parent 142d3f1d59
commit cc3c737088

View File

@ -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