diff options
author | louis <louis.braun@gmx.de> | 2015-04-05 16:56:15 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2015-04-05 16:56:15 +0200 |
commit | 3a53ab95b6abd1458c6bd8ebf53c3a868a6f2fcb (patch) | |
tree | aa1ad8d4ca1d994755f3ea49b4d47cfd25657c2c /libcore | |
parent | 7bc7304d8400c419783f613febe4179ee8bd9366 (diff) | |
download | vdr-plugin-skindesigner-3a53ab95b6abd1458c6bd8ebf53c3a868a6f2fcb.tar.gz vdr-plugin-skindesigner-3a53ab95b6abd1458c6bd8ebf53c3a868a6f2fcb.tar.bz2 |
added category indicator token to default menus
Diffstat (limited to 'libcore')
-rw-r--r-- | libcore/imagecache.c | 5 | ||||
-rw-r--r-- | libcore/imagecache.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/libcore/imagecache.c b/libcore/imagecache.c index 3d80f9b..af05777 100644 --- a/libcore/imagecache.c +++ b/libcore/imagecache.c @@ -188,7 +188,7 @@ cImage *cImageCache::GetIcon(eImageType type, string name, int width, int height return NULL; } -string cImageCache::GetIconName(string label, eMenuCategory cat) { +string cImageCache::GetIconName(string label, eMenuCategory cat, string plugName) { //if cat is set, use standard menu entries switch (cat) { case mcSchedule: @@ -267,6 +267,9 @@ string cImageCache::GetIconName(string label, eMenuCategory cat) { } } catch (...) {} //check for Plugins + if (plugName.size() > 0) { + return *cString::sprintf("pluginicons/%s", plugName.c_str()); + } for (int i = 0; ; i++) { cPlugin *p = cPluginManager::GetPlugin(i); if (p) { diff --git a/libcore/imagecache.h b/libcore/imagecache.h index 207dbb0..e8a0365 100644 --- a/libcore/imagecache.h +++ b/libcore/imagecache.h @@ -25,7 +25,7 @@ public: //icons void CacheIcon(eImageType type, string path, int width, int height); cImage *GetIcon(eImageType type, string name, int width, int height); - string GetIconName(string label, eMenuCategory cat = mcUndefined); + string GetIconName(string label, eMenuCategory cat = mcUndefined, string plugName = ""); bool MenuIconExists(string name); //skinparts void CacheSkinpart(string path, int width, int height); |