summaryrefslogtreecommitdiff
path: root/gtk/gtkinfobar.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2013-11-29 13:13:34 +0100
committerChristian Persch <chpe@gnome.org>2013-12-01 23:17:28 +0100
commitcc3c737088e3ac2be323cbcbfeb3a57551d14adf (patch)
treed16eb6611a4ebef8b54185714962a2823ae9f820 /gtk/gtkinfobar.c
parent142d3f1d596297e9ad78a304968ff1f0ef66ec69 (diff)
downloadgtk+-cc3c737088e3ac2be323cbcbfeb3a57551d14adf.tar.gz
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
Diffstat (limited to 'gtk/gtkinfobar.c')
-rw-r--r--gtk/gtkinfobar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkinfobar.c b/gtk/gtkinfobar.c
index 396a087d19..8e99b1683d 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