Commit 61ad729e authored by VIGNET Pierre's avatar VIGNET Pierre

Add Quit button to main menu

parent bd94dad6
......@@ -154,6 +154,14 @@ class Charter(object):
menu_item.connect("activate", self.export_to_lang)
menu_item = self.wtree.get_widget("Export_picture")
menu_item.connect("activate", self.export_picture)
# Add Quit button & shortcuts
menu = self.wtree.get_widget("menu2")
menu.append(gtk.SeparatorMenuItem())
menu_item = gtk.ImageMenuItem(gtk.STOCK_QUIT)
self.add_accelerator(menu_item, "<Control>q")
menu_item.connect("activate", self.on_destroy, None)
menu.append(menu_item)
menu_item = self.wtree.get_widget("Hierarchical_TB")
menu_item.connect("activate", self.do_layout, "hierarchical_TB")
menu_item = self.wtree.get_widget("Hierarchical_LR")
......
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