[vala] GIR writer: Generate abstract attribute for abstract classes



commit 2f8362f54a790a93dd1b3fe3af2cd178f498c001
Author: Didier 'Ptitjes <ptitjes free fr>
Date:   Fri Mar 20 17:50:51 2009 +0100

    GIR writer: Generate abstract attribute for abstract classes
    
    Signed-off-by: Didier 'Ptitjes <ptitjes free fr>
---
 gobject/valagirwriter.vala |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/gobject/valagirwriter.vala b/gobject/valagirwriter.vala
index 5bf6ba7..095034a 100644
--- a/gobject/valagirwriter.vala
+++ b/gobject/valagirwriter.vala
@@ -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++;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]