summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorTimo Eskola <timo@tolleri.net>2015-09-08 12:54:54 +0300
committerTimo Eskola <timo@tolleri.net>2015-09-08 12:54:54 +0300
commit7edba06d8a957de3d99843cc52cb50c1eff7e758 (patch)
tree4be6cf91651a0f0314a33ace750bef0fdbf2181e /menu.c
parent554759de812beb5dcfdc423b1225e5e15ef80713 (diff)
downloadvdr-plugin-duplicates-7edba06d8a957de3d99843cc52cb50c1eff7e758.tar.gz
vdr-plugin-duplicates-7edba06d8a957de3d99843cc52cb50c1eff7e758.tar.bz2
Version 0.0.5:
- Fixed compilation with VDR 1.7.28, thanks to Matti Lehtimäki and Joerg Bornkessel
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index f597e03..2d8c0e6 100644
--- a/menu.c
+++ b/menu.c
@@ -55,6 +55,9 @@ public:
cMenuDuplicate::cMenuDuplicate(const cRecording *Recording)
:cOsdMenu(trVDR("Recording info"))
{
+#if VDRVERSNUM >= 10728
+ SetMenuCategory(mcRecording);
+#endif
recording = Recording;
SetHelp(trVDR("Button$Play"));
}
@@ -207,12 +210,15 @@ bool cDuplicateRecording::IsDuplicate(const cDuplicateRecording *DuplicateRecord
// --- cMenuDuplicates -------------------------------------------------------
cMenuDuplicates::cMenuDuplicates()
-#ifdef LIEMIKUUTIO
+#if defined LIEMIKUUTIO || VDRVERSNUM >= 10721
:cOsdMenu(tr("Duplicate recordings"), 9, 7, 7)
#else
:cOsdMenu(tr("Duplicate recordings"), 9, 7)
#endif
{
+#if VDRVERSNUM >= 10728
+ SetMenuCategory(mcRecording);
+#endif
Recordings.StateChanged(recordingsState); // just to get the current state
helpKeys = -1;
Set();
@@ -386,7 +392,11 @@ eOSState cMenuDuplicates::Play(void)
if (ri) {
cRecording *recording = GetRecording(ri);
if (recording) {
+#if VDRVERSNUM >= 10728
+ cDuplicatesReplayControl::SetRecording(recording->FileName());
+#else
cDuplicatesReplayControl::SetRecording(recording->FileName(), recording->Title());
+#endif
cControl::Shutdown();
cControl::Launch(new cDuplicatesReplayControl);
return osEnd;
@@ -447,6 +457,9 @@ eOSState cMenuDuplicates::ProcessKey(eKeys Key)
cMenuSetupDuplicates::cMenuSetupDuplicates(cMenuDuplicates *MenuDuplicates)
{
+#if VDRVERSNUM >= 10728
+ SetMenuCategory(mcSetup);
+#endif
menuDuplicates = MenuDuplicates;
Add(new cMenuEditBoolItem(tr("Compare title"), &dc.title));
}