mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
connect console quit event handler to window destroy-event and delete-event
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user