]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
gnome-keyring-1: Fix GnomeKeyringNetworkPasswordData binding
authorMark Lee <marklee@svn.gnome.org>
Sun, 5 Apr 2009 22:21:39 +0000 (15:21 -0700)
committerJürg Billeter <j@bitron.ch>
Thu, 7 May 2009 19:59:14 +0000 (21:59 +0200)
The correct unref function for GnomeKeyring.NetworkPasswordData is
gnome_keyring_network_password_free(). Fixes part of bug 578204.

vapi/gnome-keyring-1.vapi
vapi/packages/gnome-keyring-1/gnome-keyring-1-custom.vala

index 4626441b3d5349482e28058f889a690402a32fe1..60167708c5172fb789b9f6fda99e5840121b3f49 100644 (file)
@@ -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;
index a9c141cf78a81b8429c4d9ff783cc5d307720528..5289eb76fd13992359deaf5f75633a9fbbfcc3c1 100644 (file)
@@ -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);