>From 3b4ac1cec5b459287e45fc3d681a65f4a539c593 Mon Sep 17 00:00:00 2001 From: Yu Feng Date: Thu, 25 Jun 2009 16:00:55 +0800 Subject: [PATCH] GType is a IntegerType + SimpleType Refer to Sam's email on Jun 24th Switch statement on GType. I can't access mail-archive in china; weird. --- vapi/gobject-2.0.vapi | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/vapi/gobject-2.0.vapi b/vapi/gobject-2.0.vapi index 54b53e0..d902452 100644 --- a/vapi/gobject-2.0.vapi +++ b/vapi/gobject-2.0.vapi @@ -26,8 +26,10 @@ [CCode (cprefix = "G", lower_case_cprefix = "g_", cheader_filename = "glib.h")] namespace GLib { + [SimpleType] [CCode (type_id = "G_TYPE_GTYPE", marshaller_type_name = "GTYPE", get_value_function = "g_value_get_gtype", set_value_function = "g_value_set_gtype")] - public struct Type : ulong { + [IntegerType (rank = 9)] + public struct Type { [CCode (cname = "G_TYPE_IS_OBJECT")] public bool is_object (); [CCode (cname = "G_TYPE_IS_ABSTRACT")] -- 1.6.0.6