[vala] gnome-keyring-1: Fix GnomeKeyringNetworkPasswordData binding



commit 055a8d2d6debd1613263ad66e9ad42b48b2ebfd0
Author: Mark Lee <marklee svn gnome org>
Date:   Sun Apr 5 15:21:39 2009 -0700

    gnome-keyring-1: Fix GnomeKeyringNetworkPasswordData binding
    
    The correct unref function for GnomeKeyring.NetworkPasswordData is
    gnome_keyring_network_password_free(). Fixes part of bug 578204.
---
 vapi/gnome-keyring-1.vapi                          |    2 +-
 .../gnome-keyring-1/gnome-keyring-1-custom.vala    |    5 +++++
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/vapi/gnome-keyring-1.vapi b/vapi/gnome-keyring-1.vapi
index 4626441..6016770 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 a9c141c..5289eb7 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]