summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-01-15 10:51:37 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-01-15 10:51:37 +0100
commitbe9a6de0ef0bb282842f57a86d00075539f4156c (patch)
tree8b113d8bab495e6f812e4e01607ac92f53e3b841 /menu.c
parentb3954aefd5290babbc2aa97b8f62b6112ff494f0 (diff)
downloadvdr-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.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index e5d7e098..08445bc1 100644
--- a/menu.c
+++ b/menu.c
@@ -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();
}