]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
GIR writer: Generate abstract attribute for abstract classes
authorDidier 'Ptitjes <ptitjes@free.fr>
Fri, 20 Mar 2009 16:50:51 +0000 (17:50 +0100)
committerJürg Billeter <j@bitron.ch>
Thu, 30 Apr 2009 20:19:30 +0000 (22:19 +0200)
Signed-off-by: Didier 'Ptitjes <ptitjes@free.fr>
gobject/valagirwriter.vala

index 5bf6ba70e52cfd4e14893ca0e72554525628a672..095034a84d722a21796996c18598aa9bf7b030cb 100644 (file)
@@ -138,6 +138,9 @@ public class Vala.GIRWriter : CodeVisitor {
                        write_gtype_attributes (cl);
                        stream.printf (" glib:type-struct=\"%s\"", gtype_struct_name);
                        stream.printf (" parent=\"%s\"", cl.base_class.get_full_name ());
+                       if (cl.is_abstract) {
+                               stream.printf (" abstract=\"1\"");
+                       }
                        stream.printf (">\n");
                        indent++;