diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-05-12 14:46:46 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-05-12 14:46:46 +0200 |
commit | 2cc450a67cd8c5bef3f0b568735e5bb7efde660a (patch) | |
tree | 85a6a3629a5171903663f29606e747f90d609892 /osd.c | |
parent | 97a5ac7cba7eccbabc757fc46d62bbb3786b94fc (diff) | |
download | vdr-2cc450a67cd8c5bef3f0b568735e5bb7efde660a.tar.gz vdr-2cc450a67cd8c5bef3f0b568735e5bb7efde660a.tar.bz2 |
Added 'insert' capabilities to cList
Diffstat (limited to 'osd.c')
-rw-r--r-- | osd.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: osd.c 1.24 2002/05/05 12:00:00 kls Exp $ + * $Id: osd.c 1.25 2002/05/12 11:38:39 kls Exp $ */ #include "osd.h" @@ -161,9 +161,16 @@ void cOsdMenu::Del(int Index) first--; } -void cOsdMenu::Add(cOsdItem *Item, bool Current) +void cOsdMenu::Add(cOsdItem *Item, bool Current, cOsdItem *After) { - cList<cOsdItem>::Add(Item); + cList<cOsdItem>::Add(Item, After); + if (Current) + current = Item->Index(); +} + +void cOsdMenu::Ins(cOsdItem *Item, bool Current, cOsdItem *Before) +{ + cList<cOsdItem>::Ins(Item, Before); if (Current) current = Item->Index(); } |