aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@2mac.waldobjekt.org>2009-06-15 01:38:16 +0200
committerFelix Domke <tmbinc@2mac.waldobjekt.org>2009-06-15 01:38:16 +0200
commitc68943c97eeb0107f724ec96aae311e319c750a9 (patch)
tree25b5cc824c97877f8c9c324de83addc32e0cf573 /lib/python/Components
parent41abf51328852c031d9956dcfa5a0361f4284dc9 (diff)
downloadenigma2-c68943c97eeb0107f724ec96aae311e319c750a9.tar.gz
enigma2-c68943c97eeb0107f724ec96aae311e319c750a9.zip
allow position="center,center" to center screen client area on screen
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/GUISkin.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/python/Components/GUISkin.py b/lib/python/Components/GUISkin.py
index 9eb4a80b..1bd27297 100644
--- a/lib/python/Components/GUISkin.py
+++ b/lib/python/Components/GUISkin.py
@@ -85,6 +85,9 @@ class GUISkin:
if not self.instance:
from enigma import eWindow
self.instance = eWindow(self.desktop, z)
+
+ # we need to make sure that certain attributes come last
+ self.skinAttributes.sort(key=lambda a: {"position": 1}.get(a[0], 0))
self.title = title
applyAllAttributes(self.instance, self.desktop, self.skinAttributes, self.scale)
self.createGUIScreen(self.instance, self.desktop)