text2skin: problem with cText2SkinDisplayMenu::SetItem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Normally vdr will use that function (cText2SkinDisplayMenu::SetItem) to
set lines sequentially from 0 to the last one.

Instead of that I'm doing something like:

displayMenu->Clear();
displayMenu->SetItem(line3,3,false,false);
displayMenu->SetItem(line4,4,false,false);
displayMenu->SetItem(line5,5,false,false);

(i.e, I want to keep the 3 top lines free to fill later on)

This works fine with vdr standard skins, but with text2skin if I do the
above line3 will show on line 0, line4 on line 1 and line5 on line 2.
I had to change that to something like:

displayMenu->Clear();
displayMenu->SetItem("",0,false,false);
displayMenu->SetItem("",1,false,false);
displayMenu->SetItem("",2,false,false);
displayMenu->SetItem(line3,3,false,false);
displayMenu->SetItem(line4,4,false,false);
displayMenu->SetItem(line5,5,false,false);

I think that's because cText2SkinDisplayMenu::SetItem does this when 
filling the lines:

if (mItems.size() <= (uint)Index {
        mItems.push_back(item);
        SetDirty;
}


so it disregards completely Index.

Bye
-- 
- Yo tambi?n quiero una Europa libre de Patentes de Software  -
- I want a Software Patents Free Europe too! And you?         -
---------------------------------------------------------------
   EuropeSwPatentFree - http://EuropeSwPatentFree.hispalinux.es
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://www.linuxtv.org/pipermail/vdr/attachments/20050805/4a3f4f47/signature.pgp

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux