[gnome-clocks/clutter] Fix open_new_dialog
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks/clutter] Fix open_new_dialog
- Date: Fri, 24 Aug 2012 20:27:24 +0000 (UTC)
commit 212060096b7805d3f3084a91db4f9e4078890846
Author: Paolo Borelli <pborelli gnome org>
Date: Fri Aug 24 22:25:52 2012 +0200
Fix open_new_dialog
gnomeclocks/clocks.py | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gnomeclocks/clocks.py b/gnomeclocks/clocks.py
index 9af2467..7f7ad76 100644
--- a/gnomeclocks/clocks.py
+++ b/gnomeclocks/clocks.py
@@ -148,8 +148,7 @@ class World(Clock):
self.show_all()
def open_new_dialog(self):
- parent = self.get_parent().get_parent().get_parent()
- window = NewWorldClockDialog(parent)
+ window = NewWorldClockDialog(self.get_toplevel())
window.connect("response", self.on_dialog_response)
window.show_all()
@@ -250,8 +249,7 @@ class Alarm(Clock):
print "To Do!"
def open_new_dialog(self):
- parent = self.get_parent().get_parent().get_parent()
- window = AlarmDialog(self, parent)
+ window = AlarmDialog(self, self.get_toplevel())
window.connect("response", self.on_dialog_response, True)
window.show_all()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]