summaryrefslogtreecommitdiff
path: root/caribou
diff options
context:
space:
mode:
authorEitan Isaacson <eitan@monotonous.org>2011-05-28 12:58:13 -0700
committerEitan Isaacson <eitan@monotonous.org>2011-05-28 12:58:13 -0700
commit762929a7d19de489bc14cb92b06bb91906f4cba3 (patch)
tree27dabda9c6b7f694b7af2acf4a0fa95531866b3a /caribou
parent3e198106c13d3a43adc70e3777006f3e9c46250f (diff)
downloadcaribou-762929a7d19de489bc14cb92b06bb91906f4cba3.tar.gz
Preferences UI: Support non-strings in combo boxes
Diffstat (limited to 'caribou')
-rw-r--r--caribou/settings/preferences_window.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/caribou/settings/preferences_window.py b/caribou/settings/preferences_window.py
index 2b6d3ca..af1b245 100644
--- a/caribou/settings/preferences_window.py
+++ b/caribou/settings/preferences_window.py
@@ -151,9 +151,9 @@ class AbstractPreferencesUI:
elif setting.entry_type == ENTRY_COMBO or setting.allowed:
control = Gtk.ComboBoxText.new()
for option in setting.allowed:
- control.append(option[0], option[1])
- control.set_active_id(setting.value)
- value_changed_cb = lambda s, v, w: w.set_active_id(v)
+ control.append(str(option[0]), option[1])
+ control.set_active_id(str(setting.value))
+ value_changed_cb = lambda s, v, w: w.set_active_id(str(v))
control_changed_cb = self._combo_changed_cb
control_changed_signal = 'changed'
else: