From f1e5b591bd28c8acd852cad723459991c81d89b9 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 3 May 2003 14:55:17 +0200 Subject: Added cStatus::OsdItem() to provide the entire list of menu items to a plugin --- osd.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'osd.c') diff --git a/osd.c b/osd.c index 96e038a4..9d8b72db 100644 --- a/osd.c +++ b/osd.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: osd.c 1.41 2003/05/02 10:46:13 kls Exp $ + * $Id: osd.c 1.42 2003/05/03 14:46:38 kls Exp $ */ #include "osd.h" @@ -423,6 +423,11 @@ void cOsdMenu::Display(void) Interface->Help(helpRed, helpGreen, helpYellow, helpBlue); int count = Count(); if (count > 0) { + for (int i = 0; i < count; i++) { + cOsdItem *item = Get(i); + if (item) + cStatus::MsgOsdItem(item->Text(), i); + } if (current < 0) current = 0; // just for safety - there HAS to be a current item! int n = 0; -- cgit v1.2.3