introspection: add several missing element-type annotations
authorEvan Nemerson <evan@coeus-group.com>
Tue, 10 Jul 2012 20:02:19 +0000 (13:02 -0700)
committerStef Walter <stefw@gnome.org>
Tue, 10 Jul 2012 20:30:42 +0000 (22:30 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=679090

library/secret-attributes.c
library/secret-item.c
library/secret-paths.c

index 7601d34..f394408 100644 (file)
@@ -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,
index c8076fa..069ea24 100644 (file)
@@ -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)
index 2bd2d6f..dbea6e4 100644 (file)
@@ -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,