summaryrefslogtreecommitdiff
path: root/vala
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2010-03-23 14:58:35 +0100
committerJürg Billeter <j@bitron.ch>2010-03-23 15:04:46 +0100
commitc7c5a8583ec2b28e4244e66145b6cecbcfda3717 (patch)
tree5c13d56ef76943231e2f1412a49b4d054a48032e /vala
parentdeb6e10007e6ac2bca73e524604ba0ceeff3efb8 (diff)
downloadvala-c7c5a8583ec2b28e4244e66145b6cecbcfda3717.tar.gz
Use BOXED marshaller for compact classes with type id
Diffstat (limited to 'vala')
-rw-r--r--vala/valaclass.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/vala/valaclass.vala b/vala/valaclass.vala
index eceedf3ed..b11b266a5 100644
--- a/vala/valaclass.vala
+++ b/vala/valaclass.vala
@@ -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";
}
}