Commit 0326e0dd authored by VIGNET Pierre's avatar VIGNET Pierre
Browse files

Add Quit button to main menu

parent 85fa8f55
......@@ -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_item = gtk.ImageMenuItem(gtk.STOCK_QUIT)
self.add_accelerator(menu_item, "<Control>q")
menu_item.connect("activate", self.on_destroy, None)
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")
Supports Markdown
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