diff options
author | Jürg Billeter <j@bitron.ch> | 2009-02-02 22:31:02 +0000 |
---|---|---|
committer | Jürg Billeter <juergbi@src.gnome.org> | 2009-02-02 22:31:02 +0000 |
commit | 07843abb19f198d9c518b60ea45a2d773dba17eb (patch) | |
tree | de6cdbe90d6531440e1a762ab0dcfa76f65efe47 /vala | |
parent | d652b521983eb05d633391c0fccc75cb256d922d (diff) | |
download | vala-07843abb19f198d9c518b60ea45a2d773dba17eb.tar.gz |
Write type_id attribute for GBoxed compact classes
2009-02-02 Jürg Billeter <j@bitron.ch>
* vala/valacodewriter.vala:
Write type_id attribute for GBoxed compact classes
* vapi/gdk-2.0.vapi:
* vapi/gtk+-2.0.vapi:
* vapi/pango.vapi:
Regenerated
svn path=/trunk/; revision=2417
Diffstat (limited to 'vala')
-rw-r--r-- | vala/valacodewriter.vala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala index 9e82047ed..0023fad7d 100644 --- a/vala/valacodewriter.vala +++ b/vala/valacodewriter.vala @@ -159,6 +159,10 @@ public class Vala.CodeWriter : CodeVisitor { write_string ("type_check_function = \"%s\", ".printf (cl.type_check_function )); } + if (cl.is_compact && cl.get_type_id () != "G_TYPE_POINTER") { + write_string ("type_id = \"%s\", ".printf (cl.get_type_id ())); + } + if (cl.get_param_spec_function () != null && (cl.base_class == null || cl.get_param_spec_function () != cl.base_class.get_param_spec_function ())) { write_string ("param_spec_function = \"%s\", ".printf (cl.get_param_spec_function ())); |