]> 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 18:10:36 +0000 (20:10 +0200)
codegen/valaccodebasemodule.vala

index 261ae044971f13ced9a8b94ec120c0a246dcbfcd..bf78f9d15d54df5c5bddb782a952df28a043d4ef 100644 (file)
@@ -2412,7 +2412,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 = "";
                                }