fix for more than one CI
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 29 May 2007 12:33:35 +0000 (12:33 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 29 May 2007 12:33:35 +0000 (12:33 +0000)
data/skin_default.xml
lib/python/Screens/Ci.py

index 2057a39..d8077d4 100644 (file)
                <widget name="message" position="20,10" size="320,25" font="Regular;23" />
        </screen>
        <screen name="CiSelection" position="140,226" size="440,125" title="Common Interface">
-               <widget name="entries" position="10,10" size="420,100" />
+               <widget name="entries" position="10,10" size="420,100" scrollbarMode="showOnDemand" />
        </screen>
        <screen name="CiMmi" position="135,153" size="450,270">
                <widget name="title" position="10,10" size="430,25" font="Regular;23" />
index 27ca5aa..d23fb04 100644 (file)
@@ -265,6 +265,7 @@ class CiSelection(Screen):
 
                for slot in range(MAX_NUM_CI):
                        state = eDVBCI_UI.getInstance().getState(slot)
+                       print "slot", slot, "state", state
                        if state != -1:
                                self.appendEntries(slot, state)
                                CiHandler.registerCIMessageHandler(slot, self.ciStateChanged)
@@ -308,7 +309,7 @@ class CiSelection(Screen):
                self.state[slot] = state
 
                slotidx=0
-               while self.list[slotidx][2] != slot:
+               while self.list[slotidx][3] != slot:
                        slotidx += 1
 
                slotidx += 1 # do not change Reset