From: Jürg Billeter Date: Mon, 22 Dec 2008 21:28:26 +0000 (+0000) Subject: Fix type id for library structs registered as boxed types X-Git-Tag: VALA_0_5_4~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc51ae4842bb7b38f3feae9d6898657652b162fa;p=thirdparty%2Fvala.git Fix type id for library structs registered as boxed types 2008-12-22 Jürg Billeter * vala/valastruct.vala: Fix type id for library structs registered as boxed types svn path=/trunk/; revision=2238 --- diff --git a/ChangeLog b/ChangeLog index c632ba4ce..876411b13 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-12-22 Jürg Billeter + + * vala/valastruct.vala: + + Fix type id for library structs registered as boxed types + 2008-12-22 Thijs Vermeir * vapi/glib-2.0.vapi: diff --git a/vala/valastruct.vala b/vala/valastruct.vala index 7cf5ad7df..6595f0cc7 100644 --- a/vala/valastruct.vala +++ b/vala/valastruct.vala @@ -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) {