aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-02-22 15:22:30 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-02-22 15:22:30 +0000
commitd120b13dd6d9460fc9a66680ffb42632cb597522 (patch)
tree3eaeb6584a450d5b022189aeef52d0fd1589c29e /lib/python/Components
parent6119f4c4a0d947d56e758fe53f2822db8490b444 (diff)
downloadenigma2-d120b13dd6d9460fc9a66680ffb42632cb597522.tar.gz
enigma2-d120b13dd6d9460fc9a66680ffb42632cb597522.zip
add FileManger plugin
reenable plugin icons
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/PluginComponent.py1
-rw-r--r--lib/python/Components/PluginList.py8
2 files changed, 5 insertions, 4 deletions
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