Destroy the dialog after reading value of the widget for issue1837

And call present on the parent window
This commit is contained in:
Cédric Krier committed 2011-01-28 10:52:53 +01:00
1 parent a7d9eb38b2
commit fbb9a9fa6b
1 file changed
+2 -1
+2 -1
View File
@@ -192,9 +192,10 @@ class Form(SignalEvent):
win.show_all()
response = win.run()
win.destroy()
if response == gtk.RESPONSE_OK:
self.screen.display(locale.atoi(entry.get_text()), set_cursor=True)
win.destroy()
self.window.present()
def destroy(self):
self.screen.signal_unconnect(self)