From c5e5bf3d355bbfda072b11f692bb5d9fc7829949 Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Enrique=20Oca=C3=B1a=20Gonz=C3=A1lez?= Date: Fri, 18 Sep 2009 21:04:46 +0200 Subject: [PATCH] Corrects error 'The value type `GLib.Pid` doesn't declare a GValue set function' on Pid by considering GPid an integer --- vapi/glib-2.0.vapi | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index c62b34d..877f315 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -1270,10 +1270,10 @@ namespace GLib { public static bool remove_by_data (void* data); } - [SimpleType] - [CCode (default_value = "0")] - public struct Pid { - } + [SimpleType] + [CCode (cname = "gint", cheader_filename = "glib.h", type_id = "G_TYPE_INT", marshaller_type_name = "INT", get_value_function = "g_value_get_int", set_value_function = "g_value_set_int", default_value = "0", type_signature = "i")] + public struct Pid { + } public delegate void ChildWatchFunc (Pid pid, int status); -- 1.6.0.4