From 161fa8ead43e1ec234363af68f1c781d74aec3c0 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 21 May 2021 13:03:42 +0200 Subject: [PATCH] The default for DEPRECATED_SKIN_SETITEMEVENT has been set to 0 --- HISTORY | 5 +++++ skins.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/HISTORY b/HISTORY index c7d03e89..85294f98 100644 --- a/HISTORY +++ b/HISTORY @@ -9700,3 +9700,8 @@ Video Disk Recorder Revision History functionality. However, it is recommended to use SetCurrentChannel(int ChannelNumber) instead. - The macro DEPRECATED_GETBITMAP and the related code has been removed. +- The default for DEPRECATED_SKIN_SETITEMEVENT has been set to 0, which means that + the function cSkinDisplayMenu::SetItemEvent() without the TimerActive parameter is + no longer available. You can add 'DEPRECATED_SKIN_SETITEMEVENT=1' when compiling in + order to restore this functionality. However, it is recommended to use the function + with the TimerActive parameter instead. diff --git a/skins.h b/skins.h index ef27e825..40b185fc 100644 --- a/skins.h +++ b/skins.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: skins.h 4.6 2019/05/29 16:36:41 kls Exp $ + * $Id: skins.h 5.1 2021/05/21 13:03:42 kls Exp $ */ #ifndef __SKINS_H @@ -245,7 +245,7 @@ public: ///< The default implementation does nothing and returns false, which results in ///< a call to SetItem() with a proper text. #ifndef DEPRECATED_SKIN_SETITEMEVENT -#define DEPRECATED_SKIN_SETITEMEVENT 1 +#define DEPRECATED_SKIN_SETITEMEVENT 0 #endif #if DEPRECATED_SKIN_SETITEMEVENT virtual bool SetItemEvent(const cEvent *Event, int Index, bool Current, bool Selectable, const cChannel *Channel, bool WithDate, eTimerMatch TimerMatch) { return SetItemEvent(Event, Index, Current, Selectable, Channel, WithDate, TimerMatch, true); }