summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2018-05-21 13:41:58 +0200
committerBenjamin Berg <bberg@redhat.com>2018-05-29 15:17:24 +0200
commitf3322b495c32929896c78f82d883cd5828539d7a (patch)
treef79a3b6cc0526dfab524b2f19b02384ec022fcc6 /tests
parent3950e66bd290481c9d2b6696b9d682d07fccb85a (diff)
downloadgnome-control-center-f3322b495c32929896c78f82d883cd5828539d7a.tar.gz
tests: Do not show_all the network panel
This has the side effect of showing UI elements that should not be visible at startup. Just add the correct gtk_widget_show calls to show all relevant widgets.
Diffstat (limited to 'tests')
-rw-r--r--tests/network/cc-test-window.c2
-rw-r--r--tests/network/test-network-panel.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/network/cc-test-window.c b/tests/network/cc-test-window.c
index dcda579b3..95c979b15 100644
--- a/tests/network/cc-test-window.c
+++ b/tests/network/cc-test-window.c
@@ -78,6 +78,7 @@ set_active_panel (CcTestWindow *shell,
"expand", TRUE,
"fill", TRUE,
NULL);
+ gtk_widget_show (GTK_WIDGET (shell->active_panel));
}
}
@@ -190,6 +191,7 @@ cc_test_window_init (CcTestWindow *self)
self->main_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
gtk_container_add (GTK_CONTAINER (self), self->main_box);
+ gtk_widget_show (self->main_box);
}
CcTestWindow *
diff --git a/tests/network/test-network-panel.c b/tests/network/test-network-panel.c
index 9b3c0cab4..a6c8a8ea0 100644
--- a/tests/network/test-network-panel.c
+++ b/tests/network/test-network-panel.c
@@ -75,7 +75,7 @@ fixture_set_up_empty (NetworkPanelFixture *fixture,
g_object_ref (fixture->panel);
cc_shell_set_active_panel (CC_SHELL (fixture->shell), fixture->panel);
- gtk_widget_show_all (fixture->shell);
+ gtk_widget_show (GTK_WIDGET (fixture->shell));
}
static void