]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Use correct marshaller for fundamental classes
authorJürg Billeter <j@bitron.ch>
Tue, 9 Mar 2010 16:27:50 +0000 (17:27 +0100)
committerJürg Billeter <j@bitron.ch>
Tue, 9 Mar 2010 16:27:50 +0000 (17:27 +0100)
Fixes bug 611845.

vala/valaclass.vala

index 18564b319c84394983c513c20085568484f7af32..04342d0fb3dbc3ba12989770c6a1fbb9300c5416 100644 (file)
@@ -1,6 +1,6 @@
 /* valaclass.vala
  *
- * Copyright (C) 2006-2009  Jürg Billeter
+ * Copyright (C) 2006-2010  Jürg Billeter
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -693,6 +693,8 @@ public class Vala.Class : ObjectTypeSymbol {
                if (marshaller_type_name == null) {
                        if (base_class != null) {
                                marshaller_type_name = base_class.get_marshaller_type_name ();
+                       } else if (!is_compact) {
+                               marshaller_type_name = get_upper_case_cname ();
                        } else {
                                marshaller_type_name = "POINTER";
                        }