From 9bca5bb49f0fc0585335abf476b7082e654878b6 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Wed, 29 Aug 2012 14:46:11 -0400 Subject: [PATCH] appinfo: fix annotations for g_app_info_launch and g_app_info_launch_uris The files/uris parameters for these functions can be NULL, so we need an allow-none annotation here. --- gio/gappinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/gappinfo.c b/gio/gappinfo.c index b14954c6f..8688d2e49 100644 --- a/gio/gappinfo.c +++ b/gio/gappinfo.c @@ -515,7 +515,7 @@ g_app_info_get_icon (GAppInfo *appinfo) /** * g_app_info_launch: * @appinfo: a #GAppInfo - * @files: (element-type GFile): a #GList of #GFile objects + * @files: (allow-none) (element-type GFile): a #GList of #GFile objects * @launch_context: (allow-none): a #GAppLaunchContext or %NULL * @error: a #GError * @@ -611,7 +611,7 @@ g_app_info_supports_files (GAppInfo *appinfo) /** * g_app_info_launch_uris: * @appinfo: a #GAppInfo - * @uris: (element-type utf8): a #GList containing URIs to launch. + * @uris: (allow-none) (element-type utf8): a #GList containing URIs to launch. * @launch_context: (allow-none): a #GAppLaunchContext or %NULL * @error: a #GError *