[gtk] inspector: Fix actions visibility
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] inspector: Fix actions visibility
- Date: Fri, 21 Jun 2019 02:49:36 +0000 (UTC)
commit a515fca63f99ea46b1cdc07277ee5a21d2a97aa6
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jun 19 04:26:15 2019 +0000
inspector: Fix actions visibility
We need to always hide the page when setting
an object, otherwise the initial visibility
sticks.
gtk/inspector/actions.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/inspector/actions.c b/gtk/inspector/actions.c
index ea7d0e375f..8a2f51604f 100644
--- a/gtk/inspector/actions.c
+++ b/gtk/inspector/actions.c
@@ -290,8 +290,6 @@ remove_group (GtkInspectorActions *sl,
GtkStackPage *page,
GActionGroup *group)
{
- g_object_set (page, "visible", FALSE, NULL);
-
disconnect_group (group, sl);
g_set_object (&sl->priv->group, NULL);
@@ -308,6 +306,8 @@ gtk_inspector_actions_set_object (GtkInspectorActions *sl,
stack = gtk_widget_get_parent (GTK_WIDGET (sl));
page = gtk_stack_get_page (GTK_STACK (stack), GTK_WIDGET (sl));
+ g_object_set (page, "visible", FALSE, NULL);
+
if (sl->priv->group)
remove_group (sl, page, sl->priv->group);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]