[vala] Do not require GLib.EnumValue class in bindings



commit 0658b9c0494aeeef16118f2ad954f0c89dd3d679
Author: Jürg Billeter <j bitron ch>
Date:   Mon Jul 12 20:21:08 2010 +0200

    Do not require GLib.EnumValue class in bindings
    
    Preparation to fix bug 624094.

 codegen/valaccodebasemodule.vala |    2 --
 codegen/valagtypemodule.vala     |    2 +-
 2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 3fb6553..ed0dab8 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -194,7 +194,6 @@ public class Vala.CCodeBaseModule : CCodeModule {
 	public TypeSymbol gptrarray_type;
 	public TypeSymbol gthreadpool_type;
 	public DataType gquark_type;
-	public DataType genumvalue_type;
 	public Struct gvalue_type;
 	public Class gvariant_type;
 	public Struct mutex_type;
@@ -336,7 +335,6 @@ public class Vala.CCodeBaseModule : CCodeModule {
 			gthreadpool_type = (TypeSymbol) glib_ns.scope.lookup ("ThreadPool");
 
 			gquark_type = new IntegerType ((Struct) glib_ns.scope.lookup ("Quark"));
-			genumvalue_type = new ObjectType ((Class) glib_ns.scope.lookup ("EnumValue"));
 			gvalue_type = (Struct) glib_ns.scope.lookup ("Value");
 			gvariant_type = (Class) glib_ns.scope.lookup ("Variant");
 			mutex_type = (Struct) glib_ns.scope.lookup ("StaticRecMutex");
diff --git a/codegen/valagtypemodule.vala b/codegen/valagtypemodule.vala
index 87cffa9..50c7cdc 100644
--- a/codegen/valagtypemodule.vala
+++ b/codegen/valagtypemodule.vala
@@ -2028,7 +2028,7 @@ public class Vala.GTypeModule : GErrorModule {
 		}
 
 		var ccomma = new CCodeCommaExpression ();
-		var temp_var = get_temp_variable (genumvalue_type, false, expr, false);
+		var temp_var = get_temp_variable (new CType ("GEnumValue*"), false, expr, false);
 		temp_vars.insert (0, temp_var);
 
 		var class_ref = new CCodeFunctionCall (new CCodeIdentifier ("g_type_class_ref"));



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