From d120b13dd6d9460fc9a66680ffb42632cb597522 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Wed, 22 Feb 2006 15:22:30 +0000 Subject: add FileManger plugin reenable plugin icons --- lib/python/Components/PluginComponent.py | 1 + lib/python/Components/PluginList.py | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/python/Components') diff --git a/lib/python/Components/PluginComponent.py b/lib/python/Components/PluginComponent.py index bd8a6d07..eeb2c974 100644 --- a/lib/python/Components/PluginComponent.py +++ b/lib/python/Components/PluginComponent.py @@ -56,6 +56,7 @@ class PluginComponent: plugins = [ plugins ] for p in plugins: + p.updateIcon(path) self.addPlugin(p); def getPlugins(self, where): diff --git a/lib/python/Components/PluginList.py b/lib/python/Components/PluginList.py index a8493497..b9b5bcc7 100644 --- a/lib/python/Components/PluginList.py +++ b/lib/python/Components/PluginList.py @@ -22,10 +22,10 @@ def PluginEntryComponent(plugin): res.append((eListboxPythonMultiContent.TYPE_TEXT, 80, 5, 300, 25, 0, RT_HALIGN_LEFT, plugin.name)) res.append((eListboxPythonMultiContent.TYPE_TEXT, 80, 26, 300, 17, 1, RT_HALIGN_LEFT, plugin.description)) -# png = loadPNG(picture) -# if png == None: - - png = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "/plugin.png")) + if plugin.icon is None: + png = loadPNG(resolveFilename(SCOPE_SKIN_IMAGE, "/plugin.png")) + else: + png = plugin.icon res.append((eListboxPythonMultiContent.TYPE_PIXMAP, 10, 5, 60, 40, png)) return res -- cgit v1.2.3