From 48cf1d32c67722b0d7161e6dcbb1acf02721876a Mon Sep 17 00:00:00 2001 From: Mikhail Zabaluev Date: Fri, 2 Oct 2015 20:57:14 +0300 Subject: [PATCH] Fix up closure annotations for GSpawnChildSetupFunc https://bugzilla.gnome.org/show_bug.cgi?id=738176 --- gio/gdesktopappinfo.c | 2 +- glib/gspawn.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c index 35b7d5758..aca2eb570 100644 --- a/gio/gdesktopappinfo.c +++ b/gio/gdesktopappinfo.c @@ -3003,7 +3003,7 @@ g_desktop_app_info_launch (GAppInfo *appinfo, * @uris: (element-type utf8): List of URIs * @launch_context: (nullable): a #GAppLaunchContext * @spawn_flags: #GSpawnFlags, used for each process - * @user_setup: (scope call) (nullable): a #GSpawnChildSetupFunc, used once + * @user_setup: (scope async) (nullable): a #GSpawnChildSetupFunc, used once * for each process. * @user_setup_data: (closure user_setup) (nullable): User data for @user_setup * @pid_callback: (scope call) (nullable): Callback for child processes diff --git a/glib/gspawn.h b/glib/gspawn.h index 6489f4a87..055743ea2 100644 --- a/glib/gspawn.h +++ b/glib/gspawn.h @@ -104,7 +104,7 @@ typedef enum /** * GSpawnChildSetupFunc: - * @user_data: user data to pass to the function. + * @user_data: (closure): user data to pass to the function. * * Specifies the type of the setup function passed to g_spawn_async(), * g_spawn_sync() and g_spawn_async_with_pipes(), which can, in very