introspection: add several missing element-type annotations

https://bugzilla.gnome.org/show_bug.cgi?id=679090
This commit is contained in:
Evan Nemerson 2012-07-10 13:02:19 -07:00 committed by Stef Walter
parent 3843751b6f
commit a646cd2b33
3 changed files with 16 additions and 10 deletions

View 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,

View 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)

View 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,