[vala] Use BOXED marshaller for compact classes with type id



commit c7c5a8583ec2b28e4244e66145b6cecbcfda3717
Author: Jürg Billeter <j bitron ch>
Date:   Tue Mar 23 14:58:35 2010 +0100

    Use BOXED marshaller for compact classes with type id

 vala/valaclass.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/vala/valaclass.vala b/vala/valaclass.vala
index eceedf3..b11b266 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";
 			}
 		}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]