]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
GObject: Fix boxed property handling
authorJürg Billeter <j@bitron.ch>
Tue, 15 Sep 2009 21:14:25 +0000 (23:14 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 15 Sep 2009 21:14:25 +0000 (23:14 +0200)
codegen/valagobjectmodule.vala

index aaab3f87ab8eedd0187a05fd17d2add0dfa4ad26..bc357ea3e5cc472ac02dd04342a1ab657f1aa2f8 100644 (file)
@@ -226,6 +226,7 @@ internal class Vala.GObjectModule : GTypeModule {
                                ccall = new CCodeFunctionCall (new CCodeIdentifier ("%s_get_%s".printf (prefix, prop.name)));
                                ccall.add_argument (cself);
                                ccall.add_argument (new CCodeIdentifier ("boxed"));
+                               cswitch.add_statement (new CCodeExpressionStatement (ccall));
                                var csetcall = new CCodeFunctionCall (new CCodeIdentifier ("g_value_take_boxed"));
                                csetcall.add_argument (new CCodeIdentifier ("value"));
                                csetcall.add_argument (new CCodeIdentifier ("boxed"));