From ccbffddc8d4d0b983536ceb46cabf1c698cc5e78 Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sun, 5 Jul 2009 02:54:20 +0200 Subject: Change plugins to use WidgetPlugin if needed --- plugins/etc_proposals.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins/etc_proposals.py') 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 etc-proposals, 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 = []): -- cgit v1.2.3-70-g09d2