diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-19 23:52:52 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-19 23:52:52 +0100 |
commit | 796f983e0eb5889ee18169bfedfdef99e5b9e2ef (patch) | |
tree | 649ba5ffedc0429fac9be2b0caa20b1069a085e0 /portato/gui/windows | |
parent | 49b36ab957a53cea103fe63e117c3fe244485eaa (diff) | |
download | portato-796f983e0eb5889ee18169bfedfdef99e5b9e2ef.tar.gz portato-796f983e0eb5889ee18169bfedfdef99e5b9e2ef.tar.bz2 portato-796f983e0eb5889ee18169bfedfdef99e5b9e2ef.zip |
Make combos work
Diffstat (limited to '')
-rw-r--r-- | portato/gui/windows/preference.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/portato/gui/windows/preference.py b/portato/gui/windows/preference.py index c8025d0..a7661c5 100644 --- a/portato/gui/windows/preference.py +++ b/portato/gui/windows/preference.py @@ -144,10 +144,15 @@ class PreferenceWindow (AbstractDialog): self.pkgTabCombo = self.tree.get_widget("packageTabCombo") for c in (self.systemTabCombo, self.pkgTabCombo): - m = c.get_model() - m.clear() + model = gtk.ListStore(str) for i in (_("Top"), _("Bottom"), _("Left"), _("Right")): - m.append((i,)) + model.append((i,)) + + c.set_model(model) + + cell = gtk.CellRendererText() + c.pack_start(cell) + c.set_attributes(cell, text = 0) self.systemTabCombo.set_active(int(self.cfg.get("systemTabPos", section = "GUI"))-1) self.pkgTabCombo.set_active(int(self.cfg.get("packageTabPos", section = "GUI"))-1) @@ -161,6 +166,10 @@ class PreferenceWindow (AbstractDialog): self.databaseCombo.set_model(model) self.databaseCombo.set_active(0) # XXX: just set one thing active - no meaning yet + + cell = gtk.CellRendererText() + self.databaseCombo.pack_start(cell) + self.databaseCombo.set_attributes(cell, text = 0) self.window.show_all() |