summaryrefslogtreecommitdiff
path: root/portato/gui
diff options
context:
space:
mode:
Diffstat (limited to 'portato/gui')
-rw-r--r--portato/gui/templates/PreferenceWindow.ui14
-rw-r--r--portato/gui/windows/preference.py15
2 files changed, 12 insertions, 17 deletions
diff --git a/portato/gui/templates/PreferenceWindow.ui b/portato/gui/templates/PreferenceWindow.ui
index 3e04a9e..e5618fd 100644
--- a/portato/gui/templates/PreferenceWindow.ui
+++ b/portato/gui/templates/PreferenceWindow.ui
@@ -7,18 +7,6 @@
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
- <object class="GtkListStore" id="systemComboStore">
- <columns>
- <!-- column-name gchararray1 -->
- <column type="gchararray"/>
- </columns>
- </object>
- <object class="GtkListStore" id="pkgComboStore">
- <columns>
- <!-- column-name gchararray1 -->
- <column type="gchararray"/>
- </columns>
- </object>
<object class="GtkWindow" id="PreferenceWindow">
<property name="border_width">5</property>
<property name="title" translatable="yes">Preferences</property>
@@ -845,7 +833,6 @@
<object class="GtkComboBox" id="packageTabCombo">
<property name="visible">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
- <property name="model">pkgComboStore</property>
</object>
<packing>
<property name="position">1</property>
@@ -876,7 +863,6 @@
<object class="GtkComboBox" id="systemTabCombo">
<property name="visible">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
- <property name="model">systemComboStore</property>
</object>
<packing>
<property name="position">1</property>
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()
5-276/+423 2007-07-27changed design / added linknecoro3-66/+154 2007-07-26changed design / added linknecoro2-34/+27 2007-07-25changed design / added linknecoro5-86/+188 2007-07-24made the resume_loop-plugin change titles toonecoro5-7/+22 2007-07-21added logviewersnecoro7-215/+429 2007-07-21updated howtonecoro1-14/+24 2007-07-20new Plugin Schemenecoro1-5/+4 2007-07-20new Plugin Schemenecoro1-1/+1 2007-07-20new Plugin Schemenecoro9-162/+214 2007-07-13fixesnecoro4-27/+37 2007-07-13new fancier log outputnecoro14-127/+116 2007-07-11added SIGSTOP/SIGCONT support; SIGTERM now works ;)necoro8-208/+275 2007-07-09bug in shutdown pluginnecoro2-5/+12 2007-07-09added resume_loop pluginnecoro1-1/+1 2007-07-09added resume_loop pluginnecoro10-22/+162 2007-07-07some more documentationnecoro6-4/+108 2007-07-07Some documentation worknecoro7-18/+129