[libsecret] Fix for GObject-Introspection annotation changes



commit d205542ba37d7222112953b44a03c7ea337482fa
Author: Stef Walter <stefw gnome org>
Date:   Tue Sep 9 15:17:23 2014 +0200

    Fix for GObject-Introspection annotation changes
    
    The GTK-Doc form of annotations is deprecated.

 libsecret/secret-item.c     |    5 +----
 libsecret/secret-password.c |   24 ++++++------------------
 libsecret/secret-schema.c   |    4 +---
 3 files changed, 8 insertions(+), 25 deletions(-)
---
diff --git a/libsecret/secret-item.c b/libsecret/secret-item.c
index 1e8c141..8952382 100644
--- a/libsecret/secret-item.c
+++ b/libsecret/secret-item.c
@@ -346,13 +346,10 @@ secret_item_class_init (SecretItemClass *klass)
                                         G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | 
G_PARAM_STATIC_STRINGS));
 
        /**
-        * SecretItem:attributes:
+        * SecretItem:attributes: (type GLib.HashTable(utf8,utf8)) (transfer full)
         *
         * The attributes set on this item. Attributes are used to locate an
         * item. They are not guaranteed to be stored or transferred securely.
-        *
-        * Type: GLib.HashTable(utf8,utf8)
-        * Transfer: full
         */
        g_object_class_install_property (gobject_class, PROP_ATTRIBUTES,
                     g_param_spec_boxed ("attributes", "Attributes", "Item attributes",
diff --git a/libsecret/secret-password.c b/libsecret/secret-password.c
index 97d7f7a..daf50f0 100644
--- a/libsecret/secret-password.c
+++ b/libsecret/secret-password.c
@@ -102,7 +102,7 @@ secret_password_store (const SecretSchema *schema,
 }
 
 /**
- * secret_password_storev:
+ * secret_password_storev: (rename-to secret_password_store)
  * @schema: the schema for attributes
  * @attributes: (element-type utf8 utf8): the attribute keys and values
  * @collection: (allow-none): a collection alias, or D-Bus object path of the collection where to store the 
secret
@@ -124,8 +124,6 @@ secret_password_store (const SecretSchema *schema,
  * collection, which doesn't get stored across login sessions.
  *
  * This method will return immediately and complete asynchronously.
- *
- * Rename to: secret_password_store
  */
 void
 secret_password_storev (const SecretSchema *schema,
@@ -238,7 +236,7 @@ secret_password_store_sync (const SecretSchema *schema,
 }
 
 /**
- * secret_password_storev_sync:
+ * secret_password_storev_sync: (rename-to secret_password_store_sync)
  * @schema: the schema for attributes
  * @attributes: (element-type utf8 utf8): the attribute keys and values
  * @collection: (allow-none): a collection alias, or D-Bus object path of the collection where to store the 
secret
@@ -262,8 +260,6 @@ secret_password_store_sync (const SecretSchema *schema,
  * threads.
  *
  * Returns: whether the storage was successful or not
- *
- * Rename to: secret_password_store_sync
  */
 gboolean
 secret_password_storev_sync (const SecretSchema *schema,
@@ -351,7 +347,7 @@ secret_password_lookup (const SecretSchema *schema,
 }
 
 /**
- * secret_password_lookupv:
+ * secret_password_lookupv: (rename-to secret_password_lookup)
  * @schema: the schema for attributes
  * @attributes: (element-type utf8 utf8): the attribute keys and values
  * @cancellable: optional cancellation object
@@ -365,8 +361,6 @@ secret_password_lookup (const SecretSchema *schema,
  * If no secret is found then %NULL is returned.
  *
  * This method will return immediately and complete asynchronously.
- *
- * Rename to: secret_password_lookup
  */
 void
 secret_password_lookupv (const SecretSchema *schema,
@@ -595,7 +589,7 @@ secret_password_lookupv_nonpageable_sync (const SecretSchema *schema,
 }
 
 /**
- * secret_password_lookupv_sync:
+ * secret_password_lookupv_sync: (rename-to secret_password_lookup_sync)
  * @schema: the schema for attributes
  * @attributes: (element-type utf8 utf8): the attribute keys and values
  * @cancellable: optional cancellation object
@@ -612,8 +606,6 @@ secret_password_lookupv_nonpageable_sync (const SecretSchema *schema,
  *
  * Returns: (transfer full): a new password string which should be freed with
  *          secret_password_free() or may be freed with g_free() when done
- *
- * Rename to: secret_password_lookup_sync
  */
 gchar *
 secret_password_lookupv_sync (const SecretSchema *schema,
@@ -697,7 +689,7 @@ secret_password_clear (const SecretSchema *schema,
 
 
 /**
- * secret_password_clearv:
+ * secret_password_clearv: (rename-to secret_password_clear)
  * @schema: the schema for the attributes
  * @attributes: (element-type utf8 utf8): the attribute keys and values
  * @cancellable: optional cancellation object
@@ -711,8 +703,6 @@ secret_password_clear (const SecretSchema *schema,
  * All unlocked items that match the attributes will be deleted.
  *
  * This method will return immediately and complete asynchronously.
- *
- * Rename to: secret_password_clear
  */
 void
 secret_password_clearv (const SecretSchema *schema,
@@ -803,7 +793,7 @@ secret_password_clear_sync (const SecretSchema* schema,
 }
 
 /**
- * secret_password_clearv_sync:
+ * secret_password_clearv_sync: (rename-to secret_password_clear_sync)
  * @schema: the schema for the attributes
  * @attributes: (element-type utf8 utf8): the attribute keys and values
  * @cancellable: optional cancellation object
@@ -819,8 +809,6 @@ secret_password_clear_sync (const SecretSchema* schema,
  * threads.
  *
  * Returns: whether any passwords were removed
- *
- * Rename to: secret_password_clear_sync
  */
 gboolean
 secret_password_clearv_sync (const SecretSchema *schema,
diff --git a/libsecret/secret-schema.c b/libsecret/secret-schema.c
index 5cc47f9..8bf7fa8 100644
--- a/libsecret/secret-schema.c
+++ b/libsecret/secret-schema.c
@@ -149,7 +149,7 @@ G_DEFINE_BOXED_TYPE (SecretSchemaAttribute, secret_schema_attribute,
                      schema_attribute_copy, schema_attribute_free);
 
 /**
- * secret_schema_newv:
+ * secret_schema_newv: (rename-to secret_schema_new)
  * @name: the dotted name of the schema
  * @flags: the flags for the schema
  * @attribute_names_and_types: (element-type utf8 Secret.SchemaAttributeType): the attribute names and types 
of those attributes
@@ -176,8 +176,6 @@ G_DEFINE_BOXED_TYPE (SecretSchemaAttribute, secret_schema_attribute,
  * that are not stored by the libsecret library. Other libraries such as libgnome-keyring
  * don't store the schema name.
  *
- * Rename to: secret_schema_new
- *
  * Returns: (transfer full): the new schema, which should be unreferenced with
  *          secret_schema_unref() when done
  */


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