]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
add g_variant_unref to bindings
authorRyan Lortie <desrt@desrt.ca>
Thu, 3 Sep 2009 15:59:37 +0000 (11:59 -0400)
committerRyan Lortie <desrt@desrt.ca>
Thu, 3 Sep 2009 16:03:27 +0000 (12:03 -0400)
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.

vapi/glib-2.0.vapi

index 5be4d615deed800a8b0b58e6d4559deebad4ba60..b659fb70db01841033f5ad0aca8d732cb489ce1f 100644 (file)
@@ -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 */