mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 04:31:09 +00:00
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;
|
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_signal_connect_object (priv->revealer, "notify::child-revealed",
|
||||||
G_CALLBACK (child_revealed), widget, 0);
|
G_CALLBACK (child_revealed), widget, 0);
|
||||||
|
gtk_revealer_set_reveal_child (GTK_REVEALER (priv->revealer), FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user