diff options
Diffstat (limited to 'caribou/ui/window.py')
-rw-r--r-- | caribou/ui/window.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/caribou/ui/window.py b/caribou/ui/window.py index 08d3e2f..0ed5c90 100644 --- a/caribou/ui/window.py +++ b/caribou/ui/window.py @@ -59,6 +59,11 @@ class CaribouWindow(gtk.Window): self.connect('show', self._on_window_show) + def destroy(self): + self.keyboard.destroy() + super(gtk.Window, self).destroy() + + def set_cursor_location(self, cursor_location): self._cursor_location = cursor_location self._update_position() @@ -225,6 +230,7 @@ class CaribouWindowEntry(CaribouWindow): CaribouWindow.__init__(self, text_entry_mech, placement, min_alpha=0.075, max_alpha=0.8) + def _calculate_axis(self, axis_placement, root_bbox): offset = CaribouWindow._calculate_axis(self, axis_placement, root_bbox) |