forked from AuroraMiddleware/gtk
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:
parent
142d3f1d59
commit
cc3c737088
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user