aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-10-12 12:40:40 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-10-12 12:40:40 +0000
commitd186d7e6752018badb476ab0d4b87aa9dcea8aac (patch)
tree3476c0c276915e67b25773b56af82f9fcd9041b7
parent071b99f578486ea21e3323e6f7190693f11fc35a (diff)
downloadenigma2-d186d7e6752018badb476ab0d4b87aa9dcea8aac.tar.gz
enigma2-d186d7e6752018badb476ab0d4b87aa9dcea8aac.zip
fix non working rotor turning pixmap
-rw-r--r--data/skin_default.xml2
-rw-r--r--lib/python/Components/GUIComponent.py10
2 files changed, 11 insertions, 1 deletions
diff --git a/data/skin_default.xml b/data/skin_default.xml
index 18db44dd..f80e6374 100644
--- a/data/skin_default.xml
+++ b/data/skin_default.xml
@@ -159,7 +159,7 @@ self.instance.move(ePoint((720-wsizex)/2, (576-wsizey)/(count &gt; 7 and 2 or 3)
<widget name="config" position="10,30" size="420,220" />
</screen>
<!-- Dish -->
- <screen name="Dish" flags="wfNoBorder" position="300,100" size="130,160" title="Dish" zPosition="-2" backgroundColor="transparent" >
+ <screen name="Dish" flags="wfNoBorder" position="300,100" size="130,160" title="Dish" zPosition="-1" backgroundColor="transparent" >
<widget name="Dishpixmap" pixmap="skin_default/dish.png" position="0,0" size="130,160" alphatest="off" />
</screen>
<!-- EPG Selection - Single -->
diff --git a/lib/python/Components/GUIComponent.py b/lib/python/Components/GUIComponent.py
index c900796d..deb8b34a 100644
--- a/lib/python/Components/GUIComponent.py
+++ b/lib/python/Components/GUIComponent.py
@@ -7,6 +7,8 @@ class GUIComponent(object):
def __init__(self):
self.instance = None
+ self.onVisibilityChange = [ ]
+ self.__visible = 0
self.visible = 1
self.skinAttributes = None
@@ -50,14 +52,22 @@ class GUIComponent(object):
self.instance.setZPosition(z)
def show(self):
+ old = self.__visible
self.__visible = 1
if self.instance is not None:
self.instance.show()
+ if old != self.__visible:
+ for fnc in self.onVisibilityChange:
+ fnc(True)
def hide(self):
+ old = self.__visible
self.__visible = 0
if self.instance is not None:
self.instance.hide()
+ if old != self.__visible:
+ for fnc in self.onVisibilityChange:
+ fnc(False)
def getVisible(self):
return self.__visible