From b492111a8e920d390540055023e5e5b00dcaf95e Mon Sep 17 00:00:00 2001 From: Stefano Facchini Date: Mon, 26 Aug 2013 18:34:35 +0200 Subject: quit on delete event https://bugzilla.gnome.org/show_bug.cgi?id=706821 --- Mozo/MainWindow.py | 3 +++ data/mozo.ui | 1 + 2 files changed, 4 insertions(+) diff --git a/Mozo/MainWindow.py b/Mozo/MainWindow.py index bf6affa..63231df 100644 --- a/Mozo/MainWindow.py +++ b/Mozo/MainWindow.py @@ -299,6 +299,9 @@ class MainWindow: return False return True + def on_delete_event(self, widget, event): + self.quit() + def on_new_menu_button_clicked(self, button): menu_tree = self.tree.get_object('menu_tree') menus, iter = menu_tree.get_selection().get_selected() diff --git a/data/mozo.ui b/data/mozo.ui index a01bf4e..d441dbb 100644 --- a/data/mozo.ui +++ b/data/mozo.ui @@ -50,6 +50,7 @@ center normal + -- cgit v1.2.1