]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Fix support for g_boxed_copy
authorJürg Billeter <j@bitron.ch>
Tue, 26 Oct 2010 15:39:11 +0000 (17:39 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 26 Oct 2010 15:39:11 +0000 (17:39 +0200)
codegen/valaccodebasemodule.vala

index 2045dff62867c971ac37b5751539561a21ac0ada..4f4effa2fb67151836257d14bffa3a0421374992 100644 (file)
@@ -2335,7 +2335,7 @@ public class Vala.CCodeBaseModule : CodeGenerator {
                                }
                        } else if (cl != null && cl.is_gboxed) {
                                // allow duplicates of gboxed instances
-                               dup_function = type.data_type.get_dup_function ();
+                               dup_function = generate_dup_func_wrapper (type);
                                if (dup_function == null) {
                                        dup_function = "";
                                }