diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-07-03 23:17:23 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-07-03 23:17:23 +0200 |
commit | b33a8067895a127a7c2b4e0627df55550503b6f1 (patch) | |
tree | 5b4de1f333d3a035b6cc7de3457d30aeca1b33f0 /portato/gui | |
parent | 7b34a39da7da69a3a22b7d974c7574cb09f0d0a2 (diff) | |
download | portato-b33a8067895a127a7c2b4e0627df55550503b6f1.tar.gz portato-b33a8067895a127a7c2b4e0627df55550503b6f1.tar.bz2 portato-b33a8067895a127a7c2b4e0627df55550503b6f1.zip |
Ported completely
Diffstat (limited to '')
-rw-r--r-- | portato/gui/windows/main.py | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py index 364810d..b4e6353 100644 --- a/portato/gui/windows/main.py +++ b/portato/gui/windows/main.py @@ -607,13 +607,13 @@ class MainWindow (Window): # set plugins and plugin-menu splash(_("Loading Plugins")) - plugin.load_plugins("gtk") - menus = plugin.get_plugin_queue().get_plugin_menus() + plugin.load_plugins() + menus = [p.menus for p in plugin.get_plugin_queue().get_plugins()] if menus: self.tree.get_widget("pluginMenuItem").set_no_show_all(False) pluginMenu = self.tree.get_widget("pluginMenu") - for m in menus: + for m in itt.chain(*menus): item = gtk.MenuItem(m.label) item.connect("activate", m.call) pluginMenu.append(item) @@ -1082,13 +1082,8 @@ class MainWindow (Window): def save_plugin (p): def _save (): - stat_on = p.status >= p.STAT_ENABLED - hard_on = not p.get_option("disabled") - - if stat_on != hard_on: - return int(stat_on) - else: - return "" + return int(p.status >= p.STAT_ENABLED) + return _save # SESSION VERSION @@ -1553,8 +1548,8 @@ class MainWindow (Window): if queue is None: plugins = [] else: - plugins = queue.get_plugins() - + plugins = list(queue.get_plugins()) + PluginWindow(self.window, plugins) return True |