[gtk+] infobar: Fix visibility when enable-animations=false
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] infobar: Fix visibility when enable-animations=false
- Date: Sun, 1 Dec 2013 22:17:51 +0000 (UTC)
commit cc3c737088e3ac2be323cbcbfeb3a57551d14adf
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
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]