diff options
author | necoro <> | 2007-03-15 22:45:43 +0000 |
---|---|---|
committer | necoro <> | 2007-03-15 22:45:43 +0000 |
commit | 5138b1e23d34e0a72e0c2f4ae52256e14d825320 (patch) | |
tree | e300a29dd1acbd155e9afd9ca0de0036e85bb4a1 /portato/gui/gtk/windows.py | |
parent | 47a7b294e5a889afb932d371021d2b53adc20665 (diff) | |
download | portato-5138b1e23d34e0a72e0c2f4ae52256e14d825320.tar.gz portato-5138b1e23d34e0a72e0c2f4ae52256e14d825320.tar.bz2 portato-5138b1e23d34e0a72e0c2f4ae52256e14d825320.zip |
Added etc-proposals plugin
Diffstat (limited to '')
-rw-r--r-- | portato/gui/gtk/windows.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py index d67bcfd..a27d156 100644 --- a/portato/gui/gtk/windows.py +++ b/portato/gui/gtk/windows.py @@ -24,7 +24,7 @@ from portato.backend import flags, system from portato.backend.exceptions import * # plugins -from portato.plugin import PluginQueue +from portato import plugin # more GUI stuff from portato.gui.gui_helper import Database, Config, EmergeQueue @@ -626,7 +626,7 @@ class PackageTable: return True def cb_package_ebuild_clicked(self, button): - hook = self.main.pluginQueue.hook("open_ebuild", self.actual_package(), self.window) + hook = plugin.hook("open_ebuild", self.actual_package(), self.window) hook(EbuildWindow)(self.window, self.actual_package()) return True @@ -720,8 +720,7 @@ class MainWindow (Window): self.cfg.modify_external_configs() - # plugins - self.pluginQueue = PluginQueue() + plugin.load_plugins() # set vpaned position vpaned = self.tree.get_widget("vpaned") @@ -1020,7 +1019,12 @@ class MainWindow (Window): return True def cb_about_clicked (self, button): - AboutWindow(self.window, self.pluginQueue.get_plugin_data()) + queue = plugin.get_plugins() + if queue is None: + queue = [] + else: + queue = queue.get_plugin_data() + AboutWindow(self.window, queue) return True def cb_right_click (self, object, event): |