diff options
author | Simon Schampijer <simon@laptop.org> | 2012-09-19 07:10:53 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@laptop.org> | 2012-09-19 12:27:02 (GMT) |
commit | de294b8e58c98832165d0757d8f62b6ab6b47462 (patch) | |
tree | 014c4bd2fdd14b497a56c842287d13aa309b0d4b /extensions | |
parent | b773ad9843c1fb5cc8a91442c0f5e72cac370c56 (diff) |
ControlPanel: fix packaging in the keyboard section
- pack_start: we have to pass all arguments now with the dynamic bindings
- Gtk.ComboBox pack_start only allows for 2 arguments [1]
A follow up is to make displaying the section not crash Sugar anymore
SL #3926.
[1] http://python-gtk-3-tutorial.readthedocs.org/en/latest/combobox.html
Signed-off-by: Simon Schampijer <simon@laptop.org>
Acked-by: Manuel QuiƱones <manuq@laptop.org>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/cpsection/keyboard/view.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/extensions/cpsection/keyboard/view.py b/extensions/cpsection/keyboard/view.py index 587c530..085ec10 100644 --- a/extensions/cpsection/keyboard/view.py +++ b/extensions/cpsection/keyboard/view.py @@ -77,9 +77,9 @@ class LayoutCombo(Gtk.HBox): cell = Gtk.CellRendererText() cell.props.ellipsize = Pango.EllipsizeMode.MIDDLE cell.props.ellipsize_set = True - self._klang_combo.pack_start(cell, True, True, 0) + self._klang_combo.pack_start(cell, True) self._klang_combo.add_attribute(cell, 'text', 1) - self.pack_start(self._klang_combo, expand=True, fill=True) + self.pack_start(self._klang_combo, expand=True, fill=True, padding=0) self._kvariant_store = None self._kvariant_combo = Gtk.ComboBox(model=None) @@ -89,9 +89,9 @@ class LayoutCombo(Gtk.HBox): cell = Gtk.CellRendererText() cell.props.ellipsize = Pango.EllipsizeMode.MIDDLE cell.props.ellipsize_set = True - self._kvariant_combo.pack_start(cell, True, True, 0) + self._kvariant_combo.pack_start(cell, True) self._kvariant_combo.add_attribute(cell, 'text', 1) - self.pack_start(self._kvariant_combo, expand=True, fill=True) + self.pack_start(self._kvariant_combo, expand=True, fill=True, padding=0) self._klang_combo.set_active(self._index) @@ -205,7 +205,7 @@ class Keyboard(SectionView): cell = Gtk.CellRendererText() cell.props.ellipsize = Pango.EllipsizeMode.MIDDLE cell.props.ellipsize_set = True - kmodel_combo.pack_start(cell, True, True, 0) + kmodel_combo.pack_start(cell, True) kmodel_combo.add_attribute(cell, 'text', 1) self._kmodel = self._keyboard_manager.get_current_model() @@ -265,7 +265,7 @@ class Keyboard(SectionView): cell = Gtk.CellRendererText() cell.props.ellipsize = Pango.EllipsizeMode.MIDDLE cell.props.ellipsize_set = True - group_option_combo.pack_start(cell, True, True, 0) + group_option_combo.pack_start(cell, True) group_option_combo.add_attribute(cell, 'text', 1) self._group_switch_option = \ |