]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Do not require GLib.EnumValue class in bindings
authorJürg Billeter <j@bitron.ch>
Mon, 12 Jul 2010 18:21:08 +0000 (20:21 +0200)
committerJürg Billeter <j@bitron.ch>
Mon, 12 Jul 2010 18:21:08 +0000 (20:21 +0200)
Preparation to fix bug 624094.

codegen/valaccodebasemodule.vala
codegen/valagtypemodule.vala

index 3fb6553edbeb3fa089e9e30d4203705b56d030cb..ed0dab88198a6457eb216a15d6b185760e7193fe 100644 (file)
@@ -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");
index 87cffa96e62f296ff9879c4ae47037f2034f3f22..50c7cdcde1c9af244bc2d8abf558ac078875b15c 100644 (file)
@@ -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"));