[libsecret] introspection: add several missing element-type annotations
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsecret] introspection: add several missing element-type annotations
- Date: Tue, 10 Jul 2012 20:31:00 +0000 (UTC)
commit a646cd2b331cde101adce54f39ab48af5822b64b
Author: Evan Nemerson <evan coeus-group com>
Date: Tue Jul 10 13:02:19 2012 -0700
introspection: add several missing element-type annotations
https://bugzilla.gnome.org/show_bug.cgi?id=679090
library/secret-attributes.c | 8 ++++----
library/secret-item.c | 8 ++++++--
library/secret-paths.c | 10 ++++++----
3 files changed, 16 insertions(+), 10 deletions(-)
---
diff --git a/library/secret-attributes.c b/library/secret-attributes.c
index 7601d34..f394408 100644
--- a/library/secret-attributes.c
+++ b/library/secret-attributes.c
@@ -86,8 +86,8 @@ _secret_attributes_for_variant (GVariant *variant)
* string, an int number, or a gboolean value, as defined in the password
* @schema. The list of attribtues should be terminated with a %NULL.
*
- * Returns: (transfer full): a new table of attributes, to be released with
- * g_hash_table_unref()
+ * Returns: (transfer full) (element-type utf8 utf8): a new table of
+ * attributes, to be released with g_hash_table_unref()
*/
GHashTable *
secret_attributes_build (const SecretSchema *schema,
@@ -115,8 +115,8 @@ secret_attributes_build (const SecretSchema *schema,
* string, an int number, or a gboolean value, as defined in the password
* @schema. The list of attribtues should be terminated with a %NULL.
*
- * Returns: (transfer full): a new table of attributes, to be released with
- * g_hash_table_unref()
+ * Returns: (transfer full) (element-type utf8 utf8): a new table of
+ * attributes, to be released with g_hash_table_unref()
*/
GHashTable *
secret_attributes_buildv (const SecretSchema *schema,
diff --git a/library/secret-item.c b/library/secret-item.c
index c8076fa..069ea24 100644
--- a/library/secret-item.c
+++ b/library/secret-item.c
@@ -339,6 +339,9 @@ secret_item_class_init (SecretItemClass *klass)
*
* 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",
@@ -1721,8 +1724,9 @@ secret_item_set_secret_sync (SecretItem *self,
* Do not modify the attributes returned by this method. Use
* secret_item_set_attributes() instead.
*
- * Returns: (transfer full): a new reference to the attributes, which should
- * not be modified, and released with g_hash_table_unref()
+ * Returns: (transfer full) (element-type utf8 utf8): a new reference
+ * to the attributes, which should not be modified, and
+ * released with g_hash_table_unref()
*/
GHashTable *
secret_item_get_attributes (SecretItem *self)
diff --git a/library/secret-paths.c b/library/secret-paths.c
index 2bd2d6f..dbea6e4 100644
--- a/library/secret-paths.c
+++ b/library/secret-paths.c
@@ -905,8 +905,9 @@ secret_service_get_secrets_for_dbus_paths (SecretService *self,
*
* Items that are locked will not be included the results.
*
- * Returns: (transfer full): a newly allocated hash table of item_path keys to
- * #SecretValue values.
+ * Returns: (transfer full) (element-type utf8 Secret.Value): a newly
+ * allocated hash table of item_path keys to #SecretValue
+ * values.
*/
GHashTable *
secret_service_get_secrets_for_dbus_paths_finish (SecretService *self,
@@ -947,8 +948,9 @@ secret_service_get_secrets_for_dbus_paths_finish (SecretService *self,
*
* Items that are locked will not be included the results.
*
- * Returns: (transfer full): a newly allocated hash table of item_path keys to
- * #SecretValue values.
+ * Returns: (transfer full) (element-type utf8 Secret.Value): a newly
+ * allocated hash table of item_path keys to #SecretValue
+ * values.
*/
GHashTable *
secret_service_get_secrets_for_dbus_paths_sync (SecretService *self,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]