Fix closing window using short-cut

This commit is contained in:
Stephen Boddy 2015-12-02 20:07:21 +01:00
parent 74ca52582d
commit 9c21b835c2
1 changed files with 2 additions and 2 deletions

View File

@ -208,9 +208,9 @@ class Window(Container, Gtk.Window):
self.set_fullscreen(not self.isfullscreen)
elif mapping == 'close_window':
if not self.on_delete_event(window,
Gdk.Event(Gdk.DELETE)):
Gdk.Event.new(Gdk.EventType.DELETE)):
self.on_destroy_event(window,
Gdk.Event(Gdk.DESTROY))
Gdk.Event.new(Gdk.EventType.DESTROY))
else:
return(False)
return(True)