[gnome-control-center/wip/benzea/ci: 17/28] tests/network: Do not show_all the panel



commit e44ec646e3e367666077fa9403a9974ad4651d76
Author: Benjamin Berg <bberg redhat com>
Date:   Mon May 21 13:41:58 2018 +0200

    tests/network: Do not show_all the 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.

 tests/network/cc-test-window.c     | 2 ++
 tests/network/test-network-panel.c | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
---
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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]