Commit 0cfadef0 authored by Will Thompson's avatar Will Thompson Committed by John (J5) Palmieri

Add a Quit item to the File menu

parent fb7e4a29
......@@ -20,7 +20,8 @@ class DFeetApp:
signal_dict = {'add_session_bus': self.add_session_bus_cb,
'add_system_bus': self.add_system_bus_cb,
'add_bus_address': self.add_bus_address_cb,
'execute_method': self.execute_current_method_cb}
'execute_method': self.execute_current_method_cb,
'quit': self.quit_cb}
self.ICON_SIZE_CLOSE_BUTTON = gtk.icon_size_register('ICON_SIZE_CLOSE_BUTTON', 14, 14)
......@@ -127,6 +128,9 @@ class DFeetApp:
def quit_cb(self, action):
self._quit_dfeet(self.main_window, None)
def _quit_dfeet(self, main_window, event):
settings = Settings.get_instance()
size = main_window.get_size()
......@@ -49,7 +49,15 @@
<signal handler="execute_method" name="activate"/>
<object class="GtkAction" id="quit">
<property name="name">quit</property>
<property name="label" translatable="yes">_Quit</property>
<property name="tooltip" translatable="yes">Quit D-Feet</property>
<property name="stock_id">gtk-quit</property>
<signal handler="quit" name="activate"/>
......@@ -58,6 +66,7 @@
<menuitem name="ConnSessionMenu" action="add_session_bus" />
<menuitem name="ConnSystemMenu" action="add_system_bus" />
<menuitem name="ConnOtherMenu" action="add_bus_address" />
<menuitem name="QuitMenu" action="quit" />
<toolbar name="toolbar1">
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment