[Sugar-devel] [PATCH shell 2/2] Get back text visibility in Network section of the Control Panel
Simon Schampijer
simon at schampijer.de
Tue Sep 25 09:36:12 EDT 2012
Works, pushed as
http://git.sugarlabs.org/sugar/mainline/commit/9ba0a8b04d5cbb43f6bea7061221993873dbbf2f
Thanks,
Simon
On 09/25/2012 02:26 AM, Manuel Quiñones wrote:
> 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):
>
More information about the Sugar-devel
mailing list