forked from AuroraMiddleware/gtk
inspector: Fix actions visibility
We need to always hide the page when setting an object, otherwise the initial visibility sticks.
This commit is contained in:
parent
b6baa15e0a
commit
a515fca63f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user