[vala] add g_variant_unref to bindings
- From: Ryan Lortie <ryanl src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] add g_variant_unref to bindings
- Date: Thu, 3 Sep 2009 16:03:49 +0000 (UTC)
commit beb007ceab4a00eff2098c02a4575976a707f278
Author: Ryan Lortie <desrt desrt ca>
Date: Thu Sep 3 11:59:37 2009 -0400
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.
vapi/glib-2.0.vapi | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/vapi/glib-2.0.vapi b/vapi/glib-2.0.vapi
index 5be4d61..b659fb7 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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]