Blame SOURCES/commit-d1920ec

5b2f0d
commit d1920ecd9cbcbd9c486f9fe79a5379ab7cfb10d3
5b2f0d
Author: Stefano Facchini <stefano.facchini@gmail.com>
5b2f0d
Date:   Mon Aug 26 18:34:35 2013 +0200
5b2f0d
5b2f0d
    Quit on delete event
5b2f0d
    
5b2f0d
    https://bugzilla.gnome.org/show_bug.cgi?id=706821
5b2f0d
5b2f0d
diff --git a/Alacarte/MainWindow.py b/Alacarte/MainWindow.py
5b2f0d
index 40c108d..b02d84a 100644
5b2f0d
--- a/Alacarte/MainWindow.py
5b2f0d
+++ b/Alacarte/MainWindow.py
5b2f0d
@@ -232,6 +232,9 @@ class MainWindow(object):
5b2f0d
 
5b2f0d
             self.item_store.append((show, icon, name, item))
5b2f0d
 
5b2f0d
+    def on_delete_event(self, widget, event):
5b2f0d
+        self.quit()
5b2f0d
+
5b2f0d
     def on_new_menu_button_clicked(self, button):
5b2f0d
         menu_tree = self.tree.get_object('menu_tree')
5b2f0d
         menus, iter = menu_tree.get_selection().get_selected()
5b2f0d
diff --git a/data/alacarte.ui b/data/alacarte.ui
5b2f0d
index cf918a1..e09ae88 100644
5b2f0d
--- a/data/alacarte.ui
5b2f0d
+++ b/data/alacarte.ui
5b2f0d
@@ -39,6 +39,7 @@
5b2f0d
     <property name="window_position">center</property>
5b2f0d
     <property name="default_width">675</property>
5b2f0d
     <property name="default_height">530</property>
5b2f0d
+    <signal name="delete_event" handler="on_delete_event" swapped="no"/>
5b2f0d
     <child>
5b2f0d
       <object class="GtkVBox" id="dialog-vbox5">
5b2f0d
         <property name="visible">True</property>