diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-01-15 10:51:37 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-01-15 10:51:37 +0100 |
commit | be9a6de0ef0bb282842f57a86d00075539f4156c (patch) | |
tree | 8b113d8bab495e6f812e4e01607ac92f53e3b841 /menu.c | |
parent | b3954aefd5290babbc2aa97b8f62b6112ff494f0 (diff) | |
download | vdr-be9a6de0ef0bb282842f57a86d00075539f4156c.tar.gz vdr-be9a6de0ef0bb282842f57a86d00075539f4156c.tar.bz2 |
Plugins can now implement the function SetMenuSortMode() in their skin objects derived from cSkinDisplayMenu, to get informed about the currently used sort mode
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 3.26 2015/01/14 12:10:58 kls Exp $ + * $Id: menu.c 3.27 2015/01/15 10:31:41 kls Exp $ */ #include "menu.h" @@ -387,6 +387,9 @@ void cMenuChannels::Setup(void) currentItem = item; } } + SetMenuSortMode(cMenuChannelItem::SortMode() == cMenuChannelItem::csmName ? msmName : + cMenuChannelItem::SortMode() == cMenuChannelItem::csmProvider ? msmProvider : + msmNumber); if (cMenuChannelItem::SortMode() != cMenuChannelItem::csmNumber) Sort(); SetCurrent(currentItem); @@ -2670,6 +2673,7 @@ void cMenuRecordings::Set(bool Refresh) LastDir->IncrementCounter(recording->IsNew()); } } + SetMenuSortMode(RecordingsSortMode == rsmName ? msmName : msmTime); if (Refresh) Display(); } |