[pyclutter/wip/introspection] Force Clutter.Settings() to return the settings singleton



commit d99ed5704a230999ae9f3a2300b7d6b2f8ea11ba
Author: Bastian Winkler <buz netbuz org>
Date:   Wed May 9 12:30:48 2012 +0200

    Force Clutter.Settings() to return the settings singleton

 introspection/Clutter.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/introspection/Clutter.py b/introspection/Clutter.py
index f7b4e2a..b0e9598 100644
--- a/introspection/Clutter.py
+++ b/introspection/Clutter.py
@@ -1407,6 +1407,14 @@ if clutter_version >= (1, 10, 0):
     __all__.append('PipelineNode')
 
 
+
+class Settings(Clutter.Settings):
+    def __new__(cls, *args, **kwargs):
+        return Clutter.Settings.get_default()
+
+Settings = override(Settings)
+__all__.append('Settings')
+
 # override the main_quit function to ignore additional arguments. This enables
 # common stuff like stage.connect('destroy', Clutter.main_quit)
 def main_quit(*args, **kwargs):



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