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:24 (GMT)
committer Simon Schampijer <simon@laptop.org>2012-09-25 13:29:56 (GMT)
commit374679c2fd7e6227a0440f85bed6d2232f42f684 (patch)
treef0949f3c6b7a47ef2a203f081169985e9f0e2199 /extensions
parentbcb2da9259164402bbf2bbdfbe4f0cf3ef2279d2 (diff)
Fix layout of Language and Modem sections in the Control Panel - SL #3902
- Use hide() instead of hide_all() which doesn't exist in pygobject. - Remove the set_width_chars(100) of the explanation label. Forcing the width to this arbitrary number seemed to work in gtk2/pygtk, but now the top level window is being resized to fit that width. Removing this line makes the text flow without provoking a resize in the window. 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/language/view.py3
-rw-r--r--extensions/cpsection/modemconfiguration/view.py1
2 files changed, 1 insertions, 3 deletions
diff --git a/extensions/cpsection/language/view.py b/extensions/cpsection/language/view.py
index e88e383..95066f8 100644
--- a/extensions/cpsection/language/view.py
+++ b/extensions/cpsection/language/view.py
@@ -58,7 +58,6 @@ class Language(SectionView):
' If a translation is not available,'
' the next in the list will be used.')
self._text = Gtk.Label(label=explanation)
- self._text.set_width_chars(100)
self._text.set_line_wrap(True)
self._text.set_alignment(0, 0)
self.pack_start(self._text, False, False, 0)
@@ -135,7 +134,7 @@ class Language(SectionView):
if self._selected_lang_count > 1:
previous_add_removes = self._add_remove_boxes[-2]
- previous_add_removes.hide_all()
+ previous_add_removes.hide()
self._determine_add_remove_visibility()
diff --git a/extensions/cpsection/modemconfiguration/view.py b/extensions/cpsection/modemconfiguration/view.py
index 7257679..d5aa399 100644
--- a/extensions/cpsection/modemconfiguration/view.py
+++ b/extensions/cpsection/modemconfiguration/view.py
@@ -69,7 +69,6 @@ class ModemConfiguration(SectionView):
' to set up a mobile broadband connection to a'
' cellular (3G) network.')
self._text = Gtk.Label(label=explanation)
- self._text.set_width_chars(100)
self._text.set_line_wrap(True)
self._text.set_alignment(0, 0)
self.pack_start(self._text, False, False, 0)