[vala] Include glib-object.h when declaring fundamental classes



commit 3501d0504c90b42b9952ae81ba72459f34919ee2
Author: Jürg Billeter <j bitron ch>
Date:   Sun Apr 12 17:41:06 2009 +0200

    Include glib-object.h when declaring fundamental classes
---
 gobject/valagtypemodule.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gobject/valagtypemodule.vala b/gobject/valagtypemodule.vala
index dd4421b..8b6be98 100644
--- a/gobject/valagtypemodule.vala
+++ b/gobject/valagtypemodule.vala
@@ -177,6 +177,7 @@ internal class Vala.GTypeModule : GErrorModule {
 		if (cl.base_class != null) {
 			instance_struct.add_field (cl.base_class.get_cname (), "parent_instance");
 		} else if (is_fundamental) {
+			decl_space.add_include ("glib-object.h");
 			instance_struct.add_field ("GTypeInstance", "parent_instance");
 			instance_struct.add_field ("volatile int", "ref_count");
 		}



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