From: Mark Lee Date: Sun, 5 Apr 2009 22:21:39 +0000 (-0700) Subject: gnome-keyring-1: Fix GnomeKeyringNetworkPasswordData binding X-Git-Tag: 0.7.3~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=055a8d2d6debd1613263ad66e9ad42b48b2ebfd0;p=thirdparty%2Fvala.git gnome-keyring-1: Fix GnomeKeyringNetworkPasswordData binding The correct unref function for GnomeKeyring.NetworkPasswordData is gnome_keyring_network_password_free(). Fixes part of bug 578204. --- diff --git a/vapi/gnome-keyring-1.vapi b/vapi/gnome-keyring-1.vapi index 4626441b3..60167708c 100644 --- a/vapi/gnome-keyring-1.vapi +++ b/vapi/gnome-keyring-1.vapi @@ -61,7 +61,7 @@ namespace GnomeKeyring { public void set_type (GnomeKeyring.ItemType type); } [Compact] - [CCode (cheader_filename = "gnome-keyring.h")] + [CCode (free_function = "gnome_keyring_network_password_free", cheader_filename = "gnome-keyring.h")] public class NetworkPasswordData { public weak string authtype; public weak string domain; diff --git a/vapi/packages/gnome-keyring-1/gnome-keyring-1-custom.vala b/vapi/packages/gnome-keyring-1/gnome-keyring-1-custom.vala index a9c141cf7..5289eb76f 100644 --- a/vapi/packages/gnome-keyring-1/gnome-keyring-1-custom.vala +++ b/vapi/packages/gnome-keyring-1/gnome-keyring-1-custom.vala @@ -3,6 +3,11 @@ namespace GnomeKeyring public const string DEFAULT; public const GnomeKeyring.PasswordSchema NETWORK_PASSWORD; + [Compact] + [CCode (free_function = "gnome_keyring_network_password_free")] + public class NetworkPasswordData { + } + [CCode (free_function = "gnome_keyring_attribute_list_free")] public class AttributeList { public extern Attribute index (int i);