git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
af2d1d6
)
use a CList for 'summaries' list for easier calling
author
Felix Domke
<tmbinc@elitedvb.net>
Fri, 20 Jul 2007 14:25:11 +0000
(14:25 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Fri, 20 Jul 2007 14:25:11 +0000
(14:25 +0000)
lib/python/Components/GUISkin.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/GUISkin.py
b/lib/python/Components/GUISkin.py
index 406cd0977218ba505988662a73a45436f5c8eb19..fc8f38cb9bc0dcf75fb6e2a48bb50281a7e4b883 100644
(file)
--- a/
lib/python/Components/GUISkin.py
+++ b/
lib/python/Components/GUISkin.py
@@
-1,12
+1,13
@@
from GUIComponent import *
from skin import applyAllAttributes
from GUIComponent import *
from skin import applyAllAttributes
+from Tools.CList import CList
class GUISkin:
__module__ = __name__
def __init__(self):
self.onLayoutFinish = [ ]
class GUISkin:
__module__ = __name__
def __init__(self):
self.onLayoutFinish = [ ]
- self.summaries =
[ ]
+ self.summaries =
CList()
def createGUIScreen(self, parent, desktop):
for val in self.values() + self.renderer:
def createGUIScreen(self, parent, desktop):
for val in self.values() + self.renderer:
@@
-18,7
+19,7
@@
class GUISkin:
w.instance = w.widget(parent)
# w.instance.thisown = 0
applyAllAttributes(w.instance, desktop, w.skinAttributes)
w.instance = w.widget(parent)
# w.instance.thisown = 0
applyAllAttributes(w.instance, desktop, w.skinAttributes)
-
+
for f in self.onLayoutFinish:
if type(f) is not type(self.close): # is this the best way to do this?
exec(f) in globals(), locals()
for f in self.onLayoutFinish:
if type(f) is not type(self.close): # is this the best way to do this?
exec(f) in globals(), locals()
@@
-45,6
+46,4
@@
class GUISkin:
def setTitle(self, title):
self.instance.setTitle(title)
self.title = title
def setTitle(self, title):
self.instance.setTitle(title)
self.title = title
-
- for x in self.summaries:
- x.setTitle(title)
+ self.summaries.setTitle(title)