Re-order menu setup.

pull/61/head
Christian T. Jacobs 2017-06-24 22:27:51 +01:00
rodzic 4cf5a56c7e
commit 181312b2bc
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -84,6 +84,10 @@ class Menu:
self.items["PRINT_LOG"] = self.builder.get_object("mitem_print_log")
self.items["PRINT_LOG"].connect("activate", self.application.logbook.print_log)
# Preferences
self.items["PREFERENCES"] = self.builder.get_object("mitem_preferences")
self.items["PREFERENCES"].connect("activate", self.application.show_preferences)
# Quit
self.items["QUIT"] = self.builder.get_object("mitem_quit")
self.items["QUIT"].connect("activate", Gtk.main_quit)
@ -115,10 +119,6 @@ class Menu:
self.items["TOOLBOX"].set_active(False) # Don't show the toolbox by default
self.items["TOOLBOX"].connect("activate", self.application.toolbox.toggle_visible_callback)
# Preferences
self.items["PREFERENCES"] = self.builder.get_object("mitem_preferences")
self.items["PREFERENCES"].connect("activate", self.application.show_preferences)
# About
self.items["ABOUT"] = self.builder.get_object("mitem_about")
self.items["ABOUT"].connect("activate", self.application.show_about)