Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorManuel QuiƱones <manuq@laptop.org>2012-09-25 00:26:25 (GMT)
committer Simon Schampijer <simon@laptop.org>2012-09-25 13:33:31 (GMT)
commit9ba0a8b04d5cbb43f6bea7061221993873dbbf2f (patch)
treebbaa2c70b5bf32f3e1bc998aecb40825d9112543 /extensions
parent374679c2fd7e6227a0440f85bed6d2232f42f684 (diff)
Get back text visibility in Network section of the Control Panel
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@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
Diffstat (limited to 'extensions')
-rw-r--r--extensions/cpsection/network/view.py12
1 files 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):