summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-05-15 17:43:51 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-05-15 17:43:51 +0200
commit824e812a44851ec1963d3347f588821477e9937c (patch)
treee678245fcf06da5ac8c5fc1a4d1ec8163062bca1 /plugins
parentdc790188d63aa32984db739d9e08ce877b51534f (diff)
parent226f0d6a40a01cbcc9c7baffde647159fb784e40 (diff)
downloadportato-824e812a44851ec1963d3347f588821477e9937c.tar.gz
portato-824e812a44851ec1963d3347f588821477e9937c.tar.bz2
portato-824e812a44851ec1963d3347f588821477e9937c.zip
Merge new (better) plugin system, now allowing to add widgets
Diffstat (limited to 'plugins')
-rw-r--r--plugins/etc_proposals.py2
-rw-r--r--plugins/exception.py2
-rw-r--r--plugins/gpytage.py2
-rw-r--r--plugins/new_version.py2
4 files changed, 4 insertions, 4 deletions
diff --git a/plugins/etc_proposals.py b/plugins/etc_proposals.py
index bb8ce5a..7de83f3 100644
--- a/plugins/etc_proposals.py
+++ b/plugins/etc_proposals.py
@@ -23,7 +23,7 @@ class EtcProposals (Plugin):
def init (self):
self.prog = ["/usr/sbin/etc-proposals"]
self.add_call("after_emerge", self.hook, type = "after")
- self.add_menu("Et_c-Proposals", self.menu)
+ self.create_widget("Plugin Menu", "Et_c-Proposals", activate = self.menu)
def launch (self, options = []):
if os.getuid() == 0:
diff --git a/plugins/exception.py b/plugins/exception.py
index 0dc6105..23065e6 100644
--- a/plugins/exception.py
+++ b/plugins/exception.py
@@ -16,5 +16,5 @@ def throw (*args, **kwargs):
p = Plugin()
p.__name__ = "ExceptionThrower"
p.__author__ = "René 'Necoro' Neumann"
-p.add_menu("Throw exception", throw)
+p.create_widget("Plugin Menu", "Throw exception", activate = throw)
register(p)
diff --git a/plugins/gpytage.py b/plugins/gpytage.py
index 43678ec..d014f19 100644
--- a/plugins/gpytage.py
+++ b/plugins/gpytage.py
@@ -18,7 +18,7 @@ class GPytage (Plugin):
__dependency__ = ["app-portage/gpytage"]
def init (self):
- self.add_menu("Config _Editor", self.menu)
+ self.create_widget("Plugin Menu", "Config _Editor", activate = self.menu)
def menu (self, *args):
Popen(["/usr/bin/gpytage"])
diff --git a/plugins/new_version.py b/plugins/new_version.py
index 8cdf0a5..e741348 100644
--- a/plugins/new_version.py
+++ b/plugins/new_version.py
@@ -30,7 +30,7 @@ class NewVersionFinder(Plugin):
def init (self):
self.add_call("main", self.run)
- self.add_menu("Check for new _versions", self.menu)
+ self.create_widget("Plugin Menu", "Check for new _versions", activate = self.menu)
def find_version (self, rev):
try: