gobject-introspection r792 - trunk/giscanner



Author: tko
Date: Thu Oct 23 17:40:19 2008
New Revision: 792
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=792&view=rev

Log:
record GType when constructing the Type from it

	* giscanner/glibtransformer.py (_type_from_gtype): record GType
	when constructing the Type from it

Modified:
   trunk/giscanner/glibtransformer.py

Modified: trunk/giscanner/glibtransformer.py
==============================================================================
--- trunk/giscanner/glibtransformer.py	(original)
+++ trunk/giscanner/glibtransformer.py	Thu Oct 23 17:40:19 2008
@@ -183,7 +183,10 @@
         type_name = type_name_from_ctype(ctype)
         type_name = type_name.replace('*', '')
         type_name = self._resolve_type_name(type_name)
-        return Type(type_name, ctype)
+
+        type = Type(type_name, ctype)
+        type._gtype = type_id
+        return type
 
     def _resolve_gtypename(self, gtype_name):
         try:



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