[pygobject] Fix stupid name clash



commit f14976ffabec28f6cafe1e37dc81d207a947d4ca
Author: Tomeu Vizoso <tomeu vizoso collabora co uk>
Date:   Tue Dec 28 18:34:25 2010 +0100

    Fix stupid name clash

 gi/module.py |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gi/module.py b/gi/module.py
index c7b6557..1d48287 100644
--- a/gi/module.py
+++ b/gi/module.py
@@ -114,8 +114,11 @@ class IntrospectionModule(object):
                 wrapper.__module__ = 'gi.repository.' + info.get_namespace()
 
                 for value_info in info.get_values():
-                    name = value_info.get_name().upper()
-                    setattr(wrapper, name, wrapper(value_info.get_value()))
+                    value_name = value_info.get_name().upper()
+                    setattr(wrapper, value_name, wrapper(value_info.get_value()))
+
+            if g_type != gobject.TYPE_NONE:
+                g_type.pytype = wrapper
 
         elif isinstance(info, RegisteredTypeInfo):
             g_type = info.get_g_type()



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