[pyclutter/wip/introspection] alpha: Fix constructor for Clutter.Alpha



commit 92ebe706ba70a2c125bb44586650d57fd90c5126
Author: Bastian Winkler <buz netbuz org>
Date:   Tue Dec 6 09:08:31 2011 -0600

    alpha: Fix constructor for Clutter.Alpha

 introspection/Clutter.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/introspection/Clutter.py b/introspection/Clutter.py
index ddd28bd..b31238f 100644
--- a/introspection/Clutter.py
+++ b/introspection/Clutter.py
@@ -860,7 +860,10 @@ __all__.append('Timeline')
 class Alpha(Clutter.Alpha):
     def __init__(self, timeline=None, mode=Clutter.AnimationMode.LINEAR,
             **kwargs):
-        Clutter.Alpha.__init__(self, timeline=timeline, mode=mode, **kwargs)
+        Clutter.Alpha.__init__(self, timeline=timeline, **kwargs)
+        # FIXME: Setting :mode doesn't work via properties
+        if mode != Clutter.AnimationMode.CUSTOM_MODE:
+            self.set_mode(mode)
 
 Alpha = override(Alpha)
 __all__.append('Alpha')



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]