summaryrefslogtreecommitdiff
path: root/plugins/etc_proposals.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-07-05 02:54:20 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-07-05 02:54:20 +0200
commitccbffddc8d4d0b983536ceb46cabf1c698cc5e78 (patch)
treebf5a9ee04a110d4dd63ce514716c5e447bfbf0d6 /plugins/etc_proposals.py
parent30c88195ee02d4fa745c1c0202644ec143c57ba6 (diff)
downloadportato-ccbffddc8d4d0b983536ceb46cabf1c698cc5e78.tar.gz
portato-ccbffddc8d4d0b983536ceb46cabf1c698cc5e78.tar.bz2
portato-ccbffddc8d4d0b983536ceb46cabf1c698cc5e78.zip
Change plugins to use WidgetPlugin if needed
Diffstat (limited to '')
-rw-r--r--plugins/etc_proposals.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/etc_proposals.py b/plugins/etc_proposals.py
index 7de83f3..83b38f7 100644
--- a/plugins/etc_proposals.py
+++ b/plugins/etc_proposals.py
@@ -15,7 +15,7 @@ from portato.helper import error
import os
from subprocess import Popen
-class EtcProposals (Plugin):
+class EtcProposals (WidgetPlugin):
__author__ = "René 'Necoro' Neumann"
__description__ = "Adds support for <b>etc-proposals</b>, a graphical etc-update replacement."
__dependency__ = ["app-portage/etc-proposals"]
@@ -23,6 +23,8 @@ class EtcProposals (Plugin):
def init (self):
self.prog = ["/usr/sbin/etc-proposals"]
self.add_call("after_emerge", self.hook, type = "after")
+
+ def widget_init(self):
self.create_widget("Plugin Menu", "Et_c-Proposals", activate = self.menu)
def launch (self, options = []):