Updated upstream Git repositories
[opendreambox.git] / meta-opendreambox / recipes-dreambox / enigma2 / enigma2-4.2.0r6-dm7080 / 0001-fixed-blinking-pixmaps-widgets-was-not-correctly-por.patch
1 From f064dbe56066aca0edeccf61b23ebfc010b2b6dd Mon Sep 17 00:00:00 2001
2 From: ghost <andreas.monzner@dream-property.net>
3 Date: Sun, 21 Sep 2014 20:17:38 +0200
4 Subject: [PATCH] fixed blinking pixmaps / widgets (was not correctly ported
5  to new eSignal API) fixes rotor turning indication
6
7 ---
8  usr/lib/enigma2/python/Components/ConditionalWidget.py |   16 ++++++++--------
9  usr/lib/enigma2/python/Components/Pixmap.py            |    2 +-
10  2 files changed, 9 insertions(+), 9 deletions(-)
11
12 diff --git a/usr/lib/enigma2/python/Components/ConditionalWidget.py b/usr/lib/enigma2/python/Components/ConditionalWidget.py
13 index 1379074..43d1403 100644
14 --- a/usr/lib/enigma2/python/Components/ConditionalWidget.py
15 +++ b/usr/lib/enigma2/python/Components/ConditionalWidget.py
16 @@ -9,7 +9,7 @@ class ConditionalWidget(GUIComponent):
17                 
18                 if (withTimer):
19                         self.conditionCheckTimer = eTimer()
20 -                       self.conditionCheckTimer.timeout.connect(self.update)
21 +                       self.conditionCheckTimer_conn = self.conditionCheckTimer.timeout.connect(self.update)
22                         self.conditionCheckTimer.start(1000)
23  
24         def postWidgetCreate(self, instance):
25 @@ -17,7 +17,7 @@ class ConditionalWidget(GUIComponent):
26  
27         def setConnect(self, conditionalFunction):
28                 self.conditionalFunction = conditionalFunction
29 -               
30 +
31         def activateCondition(self, condition):
32                 if condition:
33                         self.visible = 1
34 @@ -38,19 +38,19 @@ class BlinkingWidget(GUIComponent):
35                 self.blinking = False
36                 self.setBlinkTime(500)
37                 self.timer = eTimer()
38 -               self.timer.timeout.connect(self.blink)
39 -       
40 +               self.timer_conn = self.timer.timeout.connect(self.blink)
41 +
42         def setBlinkTime(self, time):
43                 self.blinktime = time
44 -               
45 +
46         def blink(self):
47                 if self.blinking == True:
48                         self.visible = not self.visible
49 -                       
50 +
51         def startBlinking(self):
52                 self.blinking = True
53                 self.timer.start(self.blinktime)
54 -               
55 +
56         def stopBlinking(self):
57                 self.blinking = False
58                 if self.visible:
59 @@ -61,7 +61,7 @@ class BlinkingWidgetConditional(BlinkingWidget, ConditionalWidget):
60         def __init__(self):
61                 BlinkingWidget.__init__(self)
62                 ConditionalWidget.__init__(self)
63 -               
64 +
65         def activateCondition(self, condition):
66                 if (condition):
67                         if not self.blinking: # we are already blinking
68 diff --git a/usr/lib/enigma2/python/Components/Pixmap.py b/usr/lib/enigma2/python/Components/Pixmap.py
69 index cf300b6..86a838d 100644
70 --- a/usr/lib/enigma2/python/Components/Pixmap.py
71 +++ b/usr/lib/enigma2/python/Components/Pixmap.py
72 @@ -12,7 +12,7 @@ class Pixmap(GUIComponent):
73  
74  class PixmapConditional(ConditionalWidget, Pixmap):
75         def __init__(self, withTimer = True):
76 -               ConditionalWidget.__init__(self)
77 +               ConditionalWidget.__init__(self, withTimer)
78                 Pixmap.__init__(self)
79  
80  class MovingPixmap(Pixmap):
81 -- 
82 1.7.10.4
83