diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2014-06-24 14:26:36 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2014-06-24 14:26:36 (GMT) |
commit | 74cfa981e36063c0b292b52050362463a524cffe (patch) | |
tree | 9c10938c68385abf3f4c6bb3959019f7ce864fba | |
parent | cc24e9575956bb87deb444e712f48b15be58e145 (diff) |
Try to get the focus on the game widget
-rw-r--r-- | game.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -186,6 +186,7 @@ class MazeGame(Gtk.DrawingArea): if self._ebook_mode_detector.get_ebook_mode(): self._start_accelerometer() self.close_finish_window() + self.grab_focus() def __size_allocate_cb(self, widget, allocation): self._recalculate_sizes(allocation) @@ -759,7 +760,6 @@ class FinishWindow(Gtk.Window): def __realize_cb(self, widget): self.get_window().set_type_hint(Gdk.WindowTypeHint.DIALOG) - self.get_window().set_accept_focus(True) self.get_window().set_decorations(Gdk.WMDecoration.BORDER) self.get_window().set_transient_for(self._parent_window_xid) |