diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-07-05 02:54:20 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-07-05 02:54:20 +0200 |
commit | ccbffddc8d4d0b983536ceb46cabf1c698cc5e78 (patch) | |
tree | bf5a9ee04a110d4dd63ce514716c5e447bfbf0d6 /plugins/new_version.py | |
parent | 30c88195ee02d4fa745c1c0202644ec143c57ba6 (diff) | |
download | portato-ccbffddc8d4d0b983536ceb46cabf1c698cc5e78.tar.gz portato-ccbffddc8d4d0b983536ceb46cabf1c698cc5e78.tar.bz2 portato-ccbffddc8d4d0b983536ceb46cabf1c698cc5e78.zip |
Change plugins to use WidgetPlugin if needed
Diffstat (limited to '')
-rw-r--r-- | plugins/new_version.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/new_version.py b/plugins/new_version.py index e741348..f8d5d3c 100644 --- a/plugins/new_version.py +++ b/plugins/new_version.py @@ -21,7 +21,7 @@ from portato import get_listener from portato.constants import REPOURI, VERSION, APP_ICON, APP from portato.gui.utils import GtkThread -class NewVersionFinder(Plugin): +class NewVersionFinder(WidgetPlugin): """ Checks for a new version of portato every 30 minutes and on startup. """ @@ -30,6 +30,8 @@ class NewVersionFinder(Plugin): def init (self): self.add_call("main", self.run) + + def widget_init (self): self.create_widget("Plugin Menu", "Check for new _versions", activate = self.menu) def find_version (self, rev): |