[vala] gnome-keyring-1: Fix GnomeKeyring.AttributeList binding



commit bf10128eea439aef835dc66bbd7fb4d1887b32a3
Author: Jürg Billeter <j bitron ch>
Date:   Tue Aug 18 17:39:29 2009 +0200

    gnome-keyring-1: Fix GnomeKeyring.AttributeList binding

 vapi/gnome-keyring-1.vapi                          |    8 +++++---
 .../gnome-keyring-1/gnome-keyring-1-custom.vala    |    4 +++-
 2 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/vapi/gnome-keyring-1.vapi b/vapi/gnome-keyring-1.vapi
index 87db857..5aa4b0f 100644
--- a/vapi/gnome-keyring-1.vapi
+++ b/vapi/gnome-keyring-1.vapi
@@ -16,7 +16,8 @@ namespace GnomeKeyring {
 		[CCode (has_construct_function = false)]
 		public ApplicationRef ();
 	}
-	[CCode (ref_function = "gnome_keyring_attribute_list_ref", unref_function = "gnome_keyring_attribute_list_unref", cheader_filename = "gnome-keyring.h")]
+	[Compact]
+	[CCode (copy_function = "gnome_keyring_attribute_list_copy", cheader_filename = "gnome-keyring.h")]
 	public class AttributeList {
 		public GnomeKeyring.Attribute[] data;
 		public uint len;
@@ -24,6 +25,7 @@ namespace GnomeKeyring {
 		public void append_uint32 (string name, uint32 value);
 		public GnomeKeyring.AttributeList copy ();
 		public GnomeKeyring.Attribute index (int i);
+		public AttributeList ();
 	}
 	[Compact]
 	[CCode (cheader_filename = "gnome-keyring.h")]
@@ -152,9 +154,9 @@ namespace GnomeKeyring {
 	[CCode (cheader_filename = "gnome-keyring.h")]
 	public delegate void OperationGetStringCallback (GnomeKeyring.Result result, string str);
 	[CCode (cheader_filename = "gnome-keyring.h")]
-	public const string DEFAULT;
+	public static GnomeKeyring.PasswordSchema NETWORK_PASSWORD;
 	[CCode (cheader_filename = "gnome-keyring.h")]
-	public const GnomeKeyring.PasswordSchema NETWORK_PASSWORD;
+	public const string DEFAULT;
 	[CCode (cheader_filename = "gnome-keyring.h")]
 	public const string SESSION;
 	[CCode (cheader_filename = "gnome-keyring.h")]
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 c393c11..25fcdd4 100644
--- a/vapi/packages/gnome-keyring-1/gnome-keyring-1-custom.vala
+++ b/vapi/packages/gnome-keyring-1/gnome-keyring-1-custom.vala
@@ -1,15 +1,17 @@
 namespace GnomeKeyring
 {
 	public const string DEFAULT;
-	public const GnomeKeyring.PasswordSchema NETWORK_PASSWORD;
+	public GnomeKeyring.PasswordSchema NETWORK_PASSWORD;
 
 	[Compact]
 	[CCode (free_function = "gnome_keyring_network_password_free")]
 	public class NetworkPasswordData {
 	}
 
+	[Compact]
 	[CCode (free_function = "gnome_keyring_attribute_list_free")]
 	public class AttributeList {
+		public extern AttributeList ();
 		public extern Attribute index (int i);
 		
 		[NoArrayLength]



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