Destroy the dialog after reading value of the widget for issue1837

And call present on the parent window
(transplanted from 9ccf31fb4b4350d418a55ba08f1811610da9aa4d)
This commit is contained in:
Cédric Krier
2011-01-28 10:52:53 +01:00
parent 9a5c97b870
commit 6e562fb5ff
+2 -1
View File
@@ -196,9 +196,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)