vala r2213 - in trunk: . gobject
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r2213 - in trunk: . gobject
- Date: Thu, 18 Dec 2008 18:05:28 +0000 (UTC)
Author: juergbi
Date: Thu Dec 18 18:05:28 2008
New Revision: 2213
URL: http://svn.gnome.org/viewvc/vala?rev=2213&view=rev
Log:
2008-12-18 JÃrg Billeter <j bitron ch>
* gobject/valaccodememberaccessmodule.vala:
* gobject/valaccodemethodcallmodule.vala:
Fix named constructor chaining, fixes bug 559303
Modified:
trunk/ChangeLog
trunk/gobject/valaccodememberaccessmodule.vala
trunk/gobject/valaccodemethodcallmodule.vala
Modified: trunk/gobject/valaccodememberaccessmodule.vala
==============================================================================
--- trunk/gobject/valaccodememberaccessmodule.vala (original)
+++ trunk/gobject/valaccodememberaccessmodule.vala Thu Dec 18 18:05:28 2008
@@ -83,6 +83,8 @@
}
} else if (m.base_interface_method != null) {
expr.ccodenode = new CCodeIdentifier (m.base_interface_method.get_cname ());
+ } else if (m is CreationMethod) {
+ expr.ccodenode = new CCodeIdentifier (m.get_real_cname ());
} else {
expr.ccodenode = new CCodeIdentifier (m.get_cname ());
}
Modified: trunk/gobject/valaccodemethodcallmodule.vala
==============================================================================
--- trunk/gobject/valaccodemethodcallmodule.vala (original)
+++ trunk/gobject/valaccodemethodcallmodule.vala Thu Dec 18 18:05:28 2008
@@ -58,6 +58,9 @@
var cl = (Class) ((ObjectType) itype).type_symbol;
m = cl.default_construction_method;
ccall = new CCodeFunctionCall (new CCodeIdentifier (m.get_real_cname ()));
+ }
+
+ if (m is CreationMethod) {
ccall.add_argument (new CCodeIdentifier ("object_type"));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]