]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Use BOXED marshaller for compact classes with type id
authorJürg Billeter <j@bitron.ch>
Tue, 23 Mar 2010 13:58:35 +0000 (14:58 +0100)
committerJürg Billeter <j@bitron.ch>
Tue, 23 Mar 2010 14:04:46 +0000 (15:04 +0100)
vala/valaclass.vala

index eceedf3edd1592074c77718b0dc52a38065983d4..b11b266a516fa20e39e7277a1596267e1f137d75 100644 (file)
@@ -699,8 +699,10 @@ public class Vala.Class : ObjectTypeSymbol {
                                marshaller_type_name = base_class.get_marshaller_type_name ();
                        } else if (!is_compact) {
                                marshaller_type_name = get_upper_case_cname ();
-                       } else {
+                       } else if (get_type_id () == "G_TYPE_POINTER") {
                                marshaller_type_name = "POINTER";
+                       } else {
+                               marshaller_type_name = "BOXED";
                        }
                }