gobject-introspection r473 - trunk/giscanner
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r473 - trunk/giscanner
- Date: Sat, 23 Aug 2008 21:12:26 +0000 (UTC)
Author: walters
Date: Sat Aug 23 21:12:26 2008
New Revision: 473
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=473&view=rev
Log:
Don't take functions returning basic types as ctors
Modified:
trunk/giscanner/glibtransformer.py
Modified: trunk/giscanner/glibtransformer.py
==============================================================================
--- trunk/giscanner/glibtransformer.py (original)
+++ trunk/giscanner/glibtransformer.py Sat Aug 23 21:12:26 2008
@@ -272,6 +272,9 @@
new_idx = func.symbol.find('_new')
if new_idx < 0:
return None
+ # Constructors don't return basic types
+ if target_arg.type.name in type_names:
+ return None
prefix = func.symbol[:new_idx]
klass = None
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]