diff options
Diffstat (limited to 'sugargame/canvas.py')
-rw-r--r-- | sugargame/canvas.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sugargame/canvas.py b/sugargame/canvas.py index d070a96..1ce0250 100644 --- a/sugargame/canvas.py +++ b/sugargame/canvas.py @@ -23,7 +23,7 @@ class PygameCanvas(Gtk.EventBox): self._mainwindow = mainwindow - self.set_flags(Gtk.CAN_FOCUS) + self.set_can_focus(True) self._socket = Gtk.Socket() self.add(self._socket) @@ -45,7 +45,7 @@ class PygameCanvas(Gtk.EventBox): pygame.init() # Restore the default cursor. - self._socket.window.set_cursor(None) + self._socket.props.window.set_cursor(None) # Initialize the Pygame window. r = self.get_allocation() |