[vala] gobject-2.0: Add bindings for more G_TYPE_* constants



commit 3ffcd7d1ac6f438e1d00614457f945a3e892e6db
Author: Jürg Billeter <j bitron ch>
Date:   Mon Sep 14 12:29:50 2009 +0200

    gobject-2.0: Add bindings for more G_TYPE_* constants
    
    Fixes bug 591972.

 vapi/gobject-2.0.vapi |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/vapi/gobject-2.0.vapi b/vapi/gobject-2.0.vapi
index 0ba722a..983b567 100644
--- a/vapi/gobject-2.0.vapi
+++ b/vapi/gobject-2.0.vapi
@@ -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 {
 	}
 



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