diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-18 22:51:55 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-18 22:51:55 +0100 |
commit | 6f740cbb6b651dfa73ed6c0e0e2cf4176310e3c8 (patch) | |
tree | 0b528b92d62c7984fc6edc566d4f86b2e6e7865c /portato/gui/windows/main.py | |
parent | bc8b90244640273e775ce25a2f33d97f5da5bbfb (diff) | |
download | portato-6f740cbb6b651dfa73ed6c0e0e2cf4176310e3c8.tar.gz portato-6f740cbb6b651dfa73ed6c0e0e2cf4176310e3c8.tar.bz2 portato-6f740cbb6b651dfa73ed6c0e0e2cf4176310e3c8.zip |
Add 'get_ui()' method for convenience
Diffstat (limited to '')
-rw-r--r-- | portato/gui/windows/main.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py index eb4f7b3..437d305 100644 --- a/portato/gui/windows/main.py +++ b/portato/gui/windows/main.py @@ -479,8 +479,8 @@ class MainWindow (Window): plugin.load_plugins() menus = [p.menus for p in plugin.get_plugin_queue().get_plugins()] - #if menus: - # pluginMenu = self.tree.get_widget("pluginMenu") + # if menus: + # pluginMenu = self.tree.get_ui("pluginMenu") # for m in itt.chain(*menus): # item = gtk.MenuItem(m.label) @@ -552,8 +552,8 @@ class MainWindow (Window): self.packageTable = PackageTable(self) # popups - self.consolePopup = self.tree.get_widget("uimanager").get_widget("ui/consolePopup") - self.trayPopup = self.tree.get_widget("uimanager").get_widget("ui/systrayPopup") + self.consolePopup = self.tree.get_ui("consolePopup") + self.trayPopup = self.tree.get_ui("systrayPopup") # pause menu items self.emergePaused = False |