From d5cacc98a3f6f21cb03e29bf5dac733c710cc49d Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Tue, 28 Feb 2006 09:21:57 +0000 Subject: use categories to categorize the plugins --- lib/python/Plugins/Plugin.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/python/Plugins') diff --git a/lib/python/Plugins/Plugin.py b/lib/python/Plugins/Plugin.py index 4b5b7e2a..3db70397 100644 --- a/lib/python/Plugins/Plugin.py +++ b/lib/python/Plugins/Plugin.py @@ -34,8 +34,11 @@ class PluginDescriptor: self.where = [ where ] self.description = description - self.iconstr = icon - self.icon = None + if type(icon) is str or icon is None: + self.iconstr = icon + self.icon = None + else: + self.icon = icon self.__call__ = fnc -- cgit v1.2.3