summaryrefslogtreecommitdiff
path: root/tvguide.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-07-09 00:17:42 +0200
committerlouis <louis.braun@gmx.de>2013-07-09 00:17:42 +0200
commit2a7a011055a44516ec981e525776394a8c04dcfe (patch)
tree55c9828c7b619622ec36da3f4b41318ed6c85ae0 /tvguide.c
parent6da4b610d98cafe7c20555c926359d7f89347c76 (diff)
downloadvdr-plugin-tvguide-2a7a011055a44516ec981e525776394a8c04dcfe.tar.gz
vdr-plugin-tvguide-2a7a011055a44516ec981e525776394a8c04dcfe.tar.bz2
Version 0.0.6
Diffstat (limited to 'tvguide.c')
-rw-r--r--tvguide.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/tvguide.c b/tvguide.c
index 806868b..f33c1e9 100644
--- a/tvguide.c
+++ b/tvguide.c
@@ -11,6 +11,7 @@
#include <vdr/osd.h>
#include <vdr/plugin.h>
#include <vdr/device.h>
+#include <vdr/menu.h>
#include "tvguideosd.c"
@@ -20,7 +21,7 @@
-static const char *VERSION = "0.0.5";
+static const char *VERSION = "0.0.6";
static const char *DESCRIPTION = "A fancy 2d EPG Viewer";
static const char *MAINMENUENTRY = "Tvguide";
@@ -28,6 +29,7 @@ class cPluginTvguide : public cPlugin {
private:
bool logoPathSet;
bool imagesPathSet;
+ bool iconsPathSet;
public:
cPluginTvguide(void);
virtual ~cPluginTvguide();
@@ -58,6 +60,7 @@ cPluginTvguide::cPluginTvguide(void)
// VDR OBJECTS TO EXIST OR PRODUCE ANY OUTPUT!
logoPathSet = false;
imagesPathSet = false;
+ iconsPathSet = false;
}
cPluginTvguide::~cPluginTvguide()
@@ -124,6 +127,13 @@ bool cPluginTvguide::Start(void)
tvguideConfig.SetImagesPath(path);
logoPathSet = true;
}
+
+ if (!iconsPathSet) {
+ cString path = cString::sprintf("%s/icons/", cPlugin::ConfigDirectory(PLUGIN_NAME_I18N));
+ tvguideConfig.SetIconsPath(path);
+ iconsPathSet = true;
+ }
+
return true;
}