[Sugar-devel] [PATCH shell 2/2] Get back text visibility in Network section of the Control Panel

Manuel Quiñones manuq at laptop.org
Mon Sep 24 20:26:25 EDT 2012


Properly doing show() after packing the 'scrolled' and 'workspace'
containers in this section makes the text visible again.

Signed-off-by: Manuel Quiñones <manuq at laptop.org>
---
 extensions/cpsection/network/view.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/extensions/cpsection/network/view.py b/extensions/cpsection/network/view.py
index f3a1b6b..9b89375 100644
--- a/extensions/cpsection/network/view.py
+++ b/extensions/cpsection/network/view.py
@@ -52,7 +52,13 @@ class Network(SectionView):
         self._radio_alert_box = Gtk.HBox(spacing=style.DEFAULT_SPACING)
         self._jabber_alert_box = Gtk.HBox(spacing=style.DEFAULT_SPACING)
 
+        scrolled = Gtk.ScrolledWindow()
+        scrolled.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
+        self.add(scrolled)
+        scrolled.show()
+
         workspace = Gtk.VBox()
+        scrolled.add_with_viewport(workspace)
         workspace.show()
 
         separator_wireless = Gtk.HSeparator()
@@ -172,12 +178,6 @@ class Network(SectionView):
         workspace.pack_start(box_mesh, False, True, 0)
         box_mesh.show()
 
-        scrolled = Gtk.ScrolledWindow()
-        scrolled.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.AUTOMATIC)
-        scrolled.add_with_viewport(workspace)
-        scrolled.show()
-        self.add(scrolled)
-
         self.setup()
 
     def setup(self):
-- 
1.7.11.4



More information about the Sugar-devel mailing list