From 2717d8595d33b378f07d51395eaa3b35bb3d8762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Mon, 15 Apr 2013 23:08:21 +0200 Subject: [PATCH 9/9] Add annotations for element types of returned lists ... to silence warnings when g-ir-scanner warnings are enabled. https://bugs.freedesktop.org/show_bug.cgi?id=63573 --- src/polkit/polkitauthority.c | 30 +++++++++++++++--------------- src/polkitagent/polkitagentlistener.c | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/polkit/polkitauthority.c b/src/polkit/polkitauthority.c index 9947cf3..75619ab 100644 --- a/src/polkit/polkitauthority.c +++ b/src/polkit/polkitauthority.c @@ -680,10 +680,10 @@ polkit_authority_enumerate_actions (PolkitAuthority *authority, * * Finishes retrieving all registered actions. * - * Returns: (transfer full): A list of #PolkitActionDescription - * objects or %NULL if @error is set. The returned list should be - * freed with g_list_free() after each element have been freed with - * g_object_unref(). + * Returns: (element-type Polkit.ActionDescription) (transfer full): A list of + * #PolkitActionDescription objects or %NULL if @error is set. The returned + * list should be freed with g_list_free() after each element have been freed + * with g_object_unref(). **/ GList * polkit_authority_enumerate_actions_finish (PolkitAuthority *authority, @@ -736,9 +736,9 @@ polkit_authority_enumerate_actions_finish (PolkitAuthority *authority, * is blocked until a reply is received. See * polkit_authority_enumerate_actions() for the asynchronous version. * - * Returns: (transfer full): A list of #PolkitActionDescription or - * %NULL if @error is set. The returned list should be freed with - * g_list_free() after each element have been freed with + * Returns: (element-type Polkit.ActionDescription) (transfer full): A list of + * #PolkitActionDescription or %NULL if @error is set. The returned list should + * be freed with g_list_free() after each element have been freed with * g_object_unref(). **/ GList * @@ -1656,10 +1656,10 @@ polkit_authority_enumerate_temporary_authorizations (PolkitAuthority *author * * Finishes retrieving all registered actions. * - * Returns: (transfer full): A list of #PolkitTemporaryAuthorization - * objects or %NULL if @error is set. The returned list should be - * freed with g_list_free() after each element have been freed with - * g_object_unref(). + * Returns: (element-type Polkit.TemporaryAuthorization) (transfer full): A + * list of #PolkitTemporaryAuthorization objects or %NULL if @error is set. The + * returned list should be freed with g_list_free() after each element have + * been freed with g_object_unref(). **/ GList * polkit_authority_enumerate_temporary_authorizations_finish (PolkitAuthority *authority, @@ -1723,10 +1723,10 @@ polkit_authority_enumerate_temporary_authorizations_finish (PolkitAuthority *aut * polkit_authority_enumerate_temporary_authorizations() for the * asynchronous version. * - * Returns: (transfer full): A list of #PolkitTemporaryAuthorization - * objects or %NULL if @error is set. The returned list should be - * freed with g_list_free() after each element have been freed with - * g_object_unref(). + * Returns: (element-type Polkit.TemporaryAuthorization) (transfer full): A + * list of #PolkitTemporaryAuthorization objects or %NULL if @error is set. The + * returned list should be freed with g_list_free() after each element have + * been freed with g_object_unref(). **/ GList * polkit_authority_enumerate_temporary_authorizations_sync (PolkitAuthority *authority, diff --git a/src/polkitagent/polkitagentlistener.c b/src/polkitagent/polkitagentlistener.c index 29a0fdf..8c333af 100644 --- a/src/polkitagent/polkitagentlistener.c +++ b/src/polkitagent/polkitagentlistener.c @@ -749,7 +749,7 @@ polkit_agent_listener_class_init (PolkitAgentListenerClass *klass) * @icon_name: A themed icon name representing the action or %NULL. * @details: Details describing the action. * @cookie: The cookie for the authentication request. - * @identities: A list of #PolkitIdentity objects that the user can choose to authenticate as. + * @identities: (element-type Polkit.Identity): A list of #PolkitIdentity objects that the user can choose to authenticate as. * @cancellable: A #GCancellable. * @callback: Function to call when the user is done authenticating. * @user_data: Data to pass to @callback. -- 1.8.1.4