From: Ryan Lortie Date: Thu, 3 Sep 2009 15:59:37 +0000 (-0400) Subject: add g_variant_unref to bindings X-Git-Tag: 0.7.6~142 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=beb007ceab4a00eff2098c02a4575976a707f278;p=thirdparty%2Fvala.git add g_variant_unref to bindings note that if you call g_variant_unref() directly as a function then some versions of GCC have a bug that will cause invalid code to be emitted. this declaration is really only meant to be used as a callback. --- diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi index 5be4d615d..b659fb70d 100644 --- a/vapi/glib-2.0.vapi +++ b/vapi/glib-2.0.vapi @@ -3261,6 +3261,8 @@ namespace GLib { public static GLib.DestroyNotify g_object_unref; [CCode (cname = "g_list_free")] public static GLib.DestroyNotify g_list_free; + [CCode (cname = "((GDestroyNotify) g_variant_unref)")] + public static GLib.DestroyNotify g_variant_unref; /* Strings */