]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gobject-2.0: Add bindings for more G_TYPE_* constants
authorJürg Billeter <j@bitron.ch>
Mon, 14 Sep 2009 10:29:50 +0000 (12:29 +0200)
committerJürg Billeter <j@bitron.ch>
Mon, 14 Sep 2009 10:29:50 +0000 (12:29 +0200)
Fixes bug 591972.

vapi/gobject-2.0.vapi

index 0ba722ae2bf63f7bd99db89a991bade8ddfb5b5d..983b567ccb2f4d85f473b0ab285b598a769f605d 100644 (file)
@@ -66,8 +66,11 @@ namespace GLib {
                public TypeClass class_ref ();
                public weak TypeClass class_peek ();
 
-               [CCode (cname = "G_TYPE_INVALID")]
-               public static Type INVALID;
+               public const Type INVALID;
+               public const Type INTERFACE;
+               public const Type ENUM;
+               public const Type FLAGS;
+               public const Type BOXED;
        }
 
        public struct TypeQuery {
@@ -355,6 +358,7 @@ namespace GLib {
        public static delegate void Callback ();
 
        [Compact]
+       [CCode (type_id = "G_TYPE_CLOSURE")]
        public class Closure {
        }