Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar3/graphics/window.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sugar3/graphics/window.py')
-rw-r--r--src/sugar3/graphics/window.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sugar3/graphics/window.py b/src/sugar3/graphics/window.py
index 3f6ee5b..ce0d845 100644
--- a/src/sugar3/graphics/window.py
+++ b/src/sugar3/graphics/window.py
@@ -127,13 +127,13 @@ class Window(Gtk.Window):
even after invoking on response on non-gtk events.
See #1423.
"""
- if self.window is None:
+ if self.get_window() is None:
self.show()
return
timestamp = Gtk.get_current_event_time()
if not timestamp:
- timestamp = GdkX11.get_server_time(self.window)
- self.window.focus(timestamp)
+ timestamp = GdkX11.get_server_time(self.get_window())
+ self.get_window().focus(timestamp)
def fullscreen(self):
palettegroup.popdown_all()
@@ -240,7 +240,7 @@ class Window(Gtk.Window):
def __window_realize_cb(self, window):
group = Gtk.Window()
group.realize()
- window.window.set_group(group.window)
+ window.get_window().set_group(group.get_window())
def __key_press_cb(self, widget, event):
key = Gdk.keyval_name(event.keyval)