diff options
author | Eitan Isaacson <eitan@monotonous.org> | 2011-05-31 11:33:38 -0700 |
---|---|---|
committer | Eitan Isaacson <eitan@monotonous.org> | 2011-06-01 12:47:01 -0700 |
commit | 22ed36c74597159cf4866abee35bb898127dea5a (patch) | |
tree | 8d69b0934a709fdc033fc0e91212866c2b2ec254 /caribou/antler | |
parent | 6e333d1e0ac6bf25b70b16341bf70d3adc17137d (diff) | |
download | caribou-22ed36c74597159cf4866abee35bb898127dea5a.tar.gz |
Have UI choose keyboard type.
Diffstat (limited to 'caribou/antler')
-rw-r--r-- | caribou/antler/antler_settings.py | 9 | ||||
-rw-r--r-- | caribou/antler/keyboard_view.py | 6 |
2 files changed, 12 insertions, 3 deletions
diff --git a/caribou/antler/antler_settings.py b/caribou/antler/antler_settings.py index 703a7fd..da8ac2f 100644 --- a/caribou/antler/antler_settings.py +++ b/caribou/antler/antler_settings.py @@ -5,6 +5,15 @@ AntlerSettings = SettingsTopGroup( _("Antler Preferences"), "/org/gnome/antler/", "org.gnome.antler", [SettingsGroup("antler", _("Antler"), [ SettingsGroup("appearance", _("Appearance"), [ + StringSetting( + "keyboard_type", _("Keyboard Type"), "touch", + _("The keyboard geometery Caribou should use"), + _("The keyboard geometery determines the shape " + "and complexity of the keyboard, it could range from " + "a 'natural' look and feel good for composing simple " + "text, to a fullscale keyboard."), + allowed=[(('touch'), _('Touch')), + (('scan'), _('Scan'))]), BooleanSetting("use_system", _("Use System Theme"), True, _("Use System Theme")), FloatSetting("min_alpha", _("Minimum Alpha"), diff --git a/caribou/antler/keyboard_view.py b/caribou/antler/keyboard_view.py index 9402f36..385a636 100644 --- a/caribou/antler/keyboard_view.py +++ b/caribou/antler/keyboard_view.py @@ -227,16 +227,16 @@ class AntlerLayout(Gtk.HBox): class AntlerKeyboardView(Gtk.Notebook): def __init__(self): gobject.GObject.__init__(self) + settings = AntlerSettings() self.set_show_tabs(False) - self.keyboard_model = Caribou.KeyboardModel() + self.keyboard_model = Caribou.KeyboardModel( + keyboard_type=settings.keyboard_type.value) self.scanner = Caribou.Scanner() self.scanner.set_keyboard(self.keyboard_model) self.keyboard_model.connect("notify::active-group", self._on_group_changed) self.layers = {} - - settings = AntlerSettings() use_system = settings.use_system use_system.connect("value-changed", self._on_use_system_theme_changed) |