Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/dialogs.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@sugarlabs.org>2014-04-11 05:41:39 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2014-05-14 21:21:41 (GMT)
commitde4585527c085ef0018b4f1e1f900e3289921506 (patch)
treee71a5d1b095be5dadb53ac3bf7b25d527a384ab3 /dialogs.py
parenta21b3c2af2d766d3394926802ae8873ee140511f (diff)
port to gtk3: replace window by get_window
Diffstat (limited to 'dialogs.py')
-rw-r--r--dialogs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/dialogs.py b/dialogs.py
index bc4a0bc..b489e0e 100644
--- a/dialogs.py
+++ b/dialogs.py
@@ -64,7 +64,7 @@ class _DialogWindow(Gtk.Window):
def _realize_cb(self, source):
self.set_type_hint(Gdk.WindowTypeHint.DIALOG)
- self.window.set_accept_focus(True)
+ self.get_window().set_accept_focus(True)
class _DialogToolbar(Gtk.Toolbar):
@@ -206,7 +206,7 @@ class QuestionDialog(_DialogWindow):
def _change_page(self):
self.notebook.set_current_page(1)
- self.window.set_cursor(None)
+ self.get_window().set_cursor(None)
# wait 3 seconds
#report and close
GObject.timeout_add_seconds(3, self._close_all)
@@ -216,7 +216,7 @@ class QuestionDialog(_DialogWindow):
def _show_reply_feedback(self, valid_reply):
# load smiley image
- self.window.set_cursor(Gdk.Cursor.new(Gdk.CursorType.WATCH))
+ self.get_window().set_cursor(Gdk.Cursor.new(Gdk.CursorType.WATCH))
if valid_reply:
smiley = random.choice(questions.SMILIES_OK)
else: