[glib] appinfo: fix annotations for g_app_info_launch and g_app_info_launch_uris
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] appinfo: fix annotations for g_app_info_launch and g_app_info_launch_uris
- Date: Wed, 29 Aug 2012 18:48:33 +0000 (UTC)
commit 9bca5bb49f0fc0585335abf476b7082e654878b6
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Aug 29 14:46:11 2012 -0400
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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gappinfo.c b/gio/gappinfo.c
index b14954c..8688d2e 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
*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]