summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMidas <vdrportal_midas@gmx.de>2012-04-24 00:30:43 (GMT)
committerMidas <vdrportal_midas@gmx.de>2012-04-24 00:30:43 (GMT)
commit6f83d68cff5a944a37a9f12078b9896a35aa591e (patch)
tree0a931d9a0b9619395327a1977be9f8c9db6599d1
parent88d610d5a9756ea4738a540a01eba1145b03f332 (diff)
downloadvdr-plugin-block-6f83d68cff5a944a37a9f12078b9896a35aa591e.tar.gz
vdr-plugin-block-6f83d68cff5a944a37a9f12078b9896a35aa591e.tar.bz2
dvb rating only appears if vdr>1.7.11. increased dev version no.
-rw-r--r--block.c2
-rw-r--r--setup.c7
2 files changed, 6 insertions, 3 deletions
diff --git a/block.c b/block.c
index 1ec72e2..37f3460 100644
--- a/block.c
+++ b/block.c
@@ -20,7 +20,7 @@
#include <fstream>
using namespace std;
-static const char *VERSION = "0.1.2~201204181810dev";
+static const char *VERSION = "0.1.2~201204240222dev";
static const char *DESCRIPTION = trNOOP("Block unwanted shows by EPG title");
static const char *MAINMENUENTRY = trNOOP("(De)Block broadcast");
diff --git a/setup.c b/setup.c
index 72a702b..197bd60 100644
--- a/setup.c
+++ b/setup.c
@@ -45,11 +45,10 @@ void cMenuSetupBlock::Set(void) {
whitelistitem->SetSelectable(false);
dvbratingitem->SetSelectable(false);
}
- if (VDRVERSNUM < 10711) dvbratingitem->SetSelectable(false); //TODO: make the options just not appear if vdr < 1.7.11!!!!
Add(methoditem);
Add(okitem);
Add(whitelistitem);
- Add(dvbratingitem);
+ if (VDRVERSNUM < 10711) Add(dvbratingitem);
//TODO translation, setup menü einrichten ->define mit if versehen für ein/ausblenden von options? variablen deklarieren
item = new cOsdItem("");
item->SetSelectable(false);
@@ -59,7 +58,11 @@ void cMenuSetupBlock::Set(void) {
item->SetSelectable(false);
Add(item);
+#if VDRVERSNUM<10711
+#define NONKEYWORDITEMS 7
+#else
#define NONKEYWORDITEMS 8
+#endif
int index = 0;
cEventBlock *event = mEventsData.First();