Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2014-06-24 14:26:36 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2014-06-24 14:26:36 (GMT)
commit74cfa981e36063c0b292b52050362463a524cffe (patch)
tree9c10938c68385abf3f4c6bb3959019f7ce864fba
parentcc24e9575956bb87deb444e712f48b15be58e145 (diff)
Try to get the focus on the game widget
-rw-r--r--game.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/game.py b/game.py
index b882a28..fc4080b 100644
--- a/game.py
+++ b/game.py
@@ -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)