diff options
author | Christian Wieninger <cwieninger@gmx.de> | 2013-01-02 11:35:28 +0100 |
---|---|---|
committer | Christian Wieninger <cwieninger@gmx.de> | 2013-01-02 11:35:28 +0100 |
commit | b91509cf7c91def59a084d63fb2c3a523c71760e (patch) | |
tree | 8c9617a354b9c70ba4c0fa34aa2f50668526c13c /menu_searchresults.c | |
parent | 41903ba9ebaa35299d53bffa66a009c8b797a41d (diff) | |
download | vdr-plugin-epgsearch-b91509cf7c91def59a084d63fb2c3a523c71760e.tar.gz vdr-plugin-epgsearch-b91509cf7c91def59a084d63fb2c3a523c71760e.tar.bz2 |
- use of new menu categories introduced in vdr-1.7.33/34
- call SetItemEvent to pass schedule info to skins
Diffstat (limited to 'menu_searchresults.c')
-rw-r--r-- | menu_searchresults.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/menu_searchresults.c b/menu_searchresults.c index 04b564a..81d5cf2 100644 --- a/menu_searchresults.c +++ b/menu_searchresults.c @@ -184,6 +184,15 @@ cMenuSearchResultsItem::cMenuSearchResultsItem(cRecording *Recording) SetText(Recording->Title('\t')); } +void cMenuSearchResultsItem::SetMenuItem(cSkinDisplayMenu *DisplayMenu, int Index, bool Current, bool Selectable) +{ +#if APIVERSNUM >= 10733 + cChannel *channel = event?Channels.GetByChannelID(event->ChannelID(), true, true):NULL; + if (!DisplayMenu->SetItemEvent(event, Index, Current, Selectable, channel, true, timerMatch)) + DisplayMenu->SetItem(Text(), Index, Current, Selectable); +#endif +} + // --- cMenuSearchResults ------------------------------------------------------- const cEvent *cMenuSearchResults::scheduleEventInfo = NULL; |