gobject-introspection r815 - in trunk: . giscanner
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r815 - in trunk: . giscanner
- Date: Sat, 25 Oct 2008 15:42:20 +0000 (UTC)
Author: walters
Date: Sat Oct 25 15:42:20 2008
New Revision: 815
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=815&view=rev
Log:
Bug 557788 â Return types for constructors in generated typelib bogus
Modified:
trunk/ChangeLog
trunk/giscanner/glibtransformer.py
Modified: trunk/giscanner/glibtransformer.py
==============================================================================
--- trunk/giscanner/glibtransformer.py (original)
+++ trunk/giscanner/glibtransformer.py Sat Oct 25 15:42:20 2008
@@ -327,7 +327,6 @@
target_arg = func.retval
else:
target_arg = func.parameters[0]
- target_arg.type = self._resolve_param_type(target_arg.type)
if is_method:
# Methods require their first arg to be a known class
@@ -394,8 +393,8 @@
# class from the prefix
# But for now, ensure that constructor returns are always
# the most concrete class
- func.retval.type = Type(klass.name,
- self._transformer.ctype_of(klass)+'*')
+ name = self._transformer.remove_prefix(klass.type_name)
+ func.retval.type = Type(name, func.retval.type.ctype)
self._remove_attribute(func.name)
# Strip namespace and object prefix: gtk_window_new -> new
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]