diff options
author | Timm Bäder <mail@baedert.org> | 2017-01-12 15:14:25 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2017-01-12 15:14:25 +0100 |
commit | e08918cce0cd2f31924c4960af5194361b0f69dd (patch) | |
tree | 076e498354874a8c2dceaf2f56620d3a0a2b1c7e /gtk/gtkactionbar.c | |
parent | db12128d350dbf792af43987bda599291afde2fe (diff) | |
download | gtk+-e08918cce0cd2f31924c4960af5194361b0f69dd.tar.gz |
actionbar: Notify when :revealed changes
Diffstat (limited to 'gtk/gtkactionbar.c')
-rw-r--r-- | gtk/gtkactionbar.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkactionbar.c b/gtk/gtkactionbar.c index a8414f7bf3..e87a0c3c9a 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]); + } } /** |