From 3a53ab95b6abd1458c6bd8ebf53c3a868a6f2fcb Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 5 Apr 2015 16:56:15 +0200 Subject: added category indicator token to default menus --- libcore/imagecache.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libcore/imagecache.c') 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) { -- cgit v1.2.3