summaryrefslogtreecommitdiff
path: root/caribou/antler/keyboard_view.py
diff options
context:
space:
mode:
Diffstat (limited to 'caribou/antler/keyboard_view.py')
-rw-r--r--caribou/antler/keyboard_view.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/caribou/antler/keyboard_view.py b/caribou/antler/keyboard_view.py
index c5404b7..ea641ec 100644
--- a/caribou/antler/keyboard_view.py
+++ b/caribou/antler/keyboard_view.py
@@ -134,11 +134,11 @@ class AntlerSubLevel(Gtk.Window):
parent.set_sensitive(True)
self.hide()
-class AntlerLayout(Gtk.HBox):
+class AntlerLayout(Gtk.Box):
KEY_SPAN = 4
def __init__(self, level=None):
- gobject.GObject.__init__(self)
+ gobject.GObject.__init__(self, orientation=Gtk.Orientation.HORIZONTAL)
self.set_spacing(12)
self._columns = []
self._keys_map = {}
@@ -160,7 +160,7 @@ class AntlerLayout(Gtk.HBox):
col.set_row_homogeneous(True)
col.set_row_spacing(6)
col.set_column_spacing(6)
- self.add (col)
+ self.pack_start (col, True, True, 0)
self._columns.append(col)
return col