connect console quit event handler to window destroy-event and delete-event

This commit is contained in:
c-holtermann
2019-04-19 11:55:49 +02:00
parent 239484854c
commit 480aa4a575

View File

@@ -102,10 +102,8 @@ if False:
window.set_position(Gtk.WindowPosition.CENTER)
window.set_default_size(800,600)
window.set_border_width(0)
# Hm. Gtk.main_quit will kill gnucash without closing the file
# properly. That's kinda bad.
# window.connect('destroy-event', Gtk.main_quit)
# window.connect('delete-event', Gtk.main_quit)
window.connect('destroy-event', console.quit_event)
window.connect('delete-event', console.quit_event)
window.add (console)
window.show_all()
console.grab_focus()