[gtk+] actionbar: Notify when :revealed changes
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] actionbar: Notify when :revealed changes
- Date: Thu, 12 Jan 2017 17:41:17 +0000 (UTC)
commit e08918cce0cd2f31924c4960af5194361b0f69dd
Author: Timm Bäder <mail baedert org>
Date: Thu Jan 12 15:14:25 2017 +0100
actionbar: Notify when :revealed changes
gtk/gtkactionbar.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkactionbar.c b/gtk/gtkactionbar.c
index a8414f7..e87a0c3 100644
--- a/gtk/gtkactionbar.c
+++ b/gtk/gtkactionbar.c
@@ -511,7 +511,11 @@ gtk_action_bar_set_revealed (GtkActionBar *action_bar,
g_return_if_fail (GTK_IS_ACTION_BAR (action_bar));
revealed = !!revealed;
- gtk_revealer_set_reveal_child (GTK_REVEALER (priv->revealer), revealed);
+ if (revealed != gtk_revealer_get_reveal_child (GTK_REVEALER (priv->revealer)))
+ {
+ gtk_revealer_set_reveal_child (GTK_REVEALER (priv->revealer), revealed);
+ g_object_notify_by_pspec (G_OBJECT (action_bar), props[PROP_REVEALED]);
+ }
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]