diff options
author | Eitan Isaacson <eitan@monotonous.org> | 2011-06-13 14:33:32 -0700 |
---|---|---|
committer | Eitan Isaacson <eitan@monotonous.org> | 2011-06-13 14:33:32 -0700 |
commit | eeabd83f8dd69d19537a717cf6a77819422096d0 (patch) | |
tree | 74088cdd68a37130e6b2ce8df99f8cda029d4dd8 /caribou/antler | |
parent | 4e4272e3ac4280303618db9d5f31386f3a139b6e (diff) | |
download | caribou-eeabd83f8dd69d19537a717cf6a77819422096d0.tar.gz |
Replace Gtk.[HV]Box with Gtk.Box.
Diffstat (limited to 'caribou/antler')
-rw-r--r-- | caribou/antler/keyboard_view.py | 6 | ||||
-rw-r--r-- | caribou/antler/window.py | 2 |
2 files changed, 4 insertions, 4 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 diff --git a/caribou/antler/window.py b/caribou/antler/window.py index e3da33c..e24330d 100644 --- a/caribou/antler/window.py +++ b/caribou/antler/window.py @@ -204,7 +204,7 @@ class AntlerWindow(ProximityWindowBase): ctx = self.get_style_context() ctx.add_class("antler-keyboard-window") - self._vbox = Gtk.VBox() + self._vbox = Gtk.Box(orientation=Gtk.Orientation.VERTICAL) self.add(self._vbox) self.keyboard = text_entry_mech self._vbox.pack_start(text_entry_mech, True, True, 0) |