summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Mozo/MainWindow.py3
-rw-r--r--data/mozo.ui1
2 files changed, 4 insertions, 0 deletions
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 @@
<property name="window_position">center</property>
<property name="type_hint">normal</property>
<signal name="close" handler="on_close_button_clicked" swapped="no"/>
+ <signal name="delete-event" handler="on_delete_event" swapped="no"/>
<signal name="destroy" handler="on_close_button_clicked" swapped="no"/>
<signal name="style-updated" handler="on_style_updated" swapped="no"/>
<child internal-child="vbox">