]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Fix type id for library structs registered as boxed types
authorJürg Billeter <j@bitron.ch>
Mon, 22 Dec 2008 21:28:26 +0000 (21:28 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Mon, 22 Dec 2008 21:28:26 +0000 (21:28 +0000)
2008-12-22  Jürg Billeter  <j@bitron.ch>

* vala/valastruct.vala:

Fix type id for library structs registered as boxed types

svn path=/trunk/; revision=2238

ChangeLog
vala/valastruct.vala

index c632ba4cef5da93d6d6190ab52696419b9bcae69..876411b13980522a9b05cd921dc4950c31658ce7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-22  Jürg Billeter  <j@bitron.ch>
+
+       * vala/valastruct.vala:
+
+       Fix type id for library structs registered as boxed types
+
 2008-12-22  Thijs Vermeir  <thijsvermeir@gmail.com>
 
        * vapi/glib-2.0.vapi:
index 7cf5ad7df9cca0eda1e8eb44f76f707b103ae56b..6595f0cc79d372d64a733c581cb41c7e575ed000 100644 (file)
@@ -381,8 +381,7 @@ public class Vala.Struct : TypeSymbol {
 
        public override string? get_type_id () {
                if (type_id == null) {
-                       // TODO use attribute check instead
-                       if (external_package) {
+                       if (!has_type_id) {
                                foreach (DataType type in base_types) {
                                        var st = type.data_type as Struct;
                                        if (st != null) {