From 1f84c5b72f7e5bd096b0f9458ccc9eed7f64ace5 Mon Sep 17 00:00:00 2001 From: Pavel Holejsovsky Date: Mon, 27 Dec 2010 15:40:07 +0100 Subject: [PATCH] Add GI annotations to GAppInfo and GDesktopAppInfo --- gio/gappinfo.c | 4 ++-- gio/gappinfo.h | 2 +- gio/gdesktopappinfo.c | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/gio/gappinfo.c b/gio/gappinfo.c index 6f6375c4c..7557ce5c0 100644 --- a/gio/gappinfo.c +++ b/gio/gappinfo.c @@ -575,7 +575,7 @@ g_app_info_supports_files (GAppInfo *appinfo) /** * g_app_info_launch_uris: * @appinfo: a #GAppInfo - * @uris: (element-type char*): a #GList containing URIs to launch. + * @uris: (element-type utf8): a #GList containing URIs to launch. * @launch_context: (allow-none): a #GAppLaunchContext or %NULL * @error: a #GError * @@ -632,7 +632,7 @@ g_app_info_should_show (GAppInfo *appinfo) /** * g_app_info_launch_default_for_uri: * @uri: the uri to show - * @launch_context: an optional #GAppLaunchContext. + * @launch_context: (allow-none): an optional #GAppLaunchContext. * @error: a #GError. * * Utility function that launches the default application diff --git a/gio/gappinfo.h b/gio/gappinfo.h index 11a4dad53..d752d4482 100644 --- a/gio/gappinfo.h +++ b/gio/gappinfo.h @@ -99,7 +99,7 @@ struct _GAppInfoIface const char * (* get_executable) (GAppInfo *appinfo); GIcon * (* get_icon) (GAppInfo *appinfo); gboolean (* launch) (GAppInfo *appinfo, - GList *filenames, + GList *files, GAppLaunchContext *launch_context, GError **error); gboolean (* supports_uris) (GAppInfo *appinfo); diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c index a9de892f4..61a1a4853 100644 --- a/gio/gdesktopappinfo.c +++ b/gio/gdesktopappinfo.c @@ -1997,7 +1997,8 @@ g_app_info_reset_type_associations (const char *content_type) * * Gets the #GAppInfo that corresponds to a given content type. * - * Returns: #GAppInfo for given @content_type or %NULL on error. + * Returns: (transfer full): #GAppInfo for given @content_type or + * %NULL on error. **/ GAppInfo * g_app_info_get_default_for_type (const char *content_type, @@ -2069,7 +2070,7 @@ g_app_info_get_default_for_type (const char *content_type, * of the URI, up to but not including the ':', e.g. "http", * "ftp" or "sip". * - * Returns: #GAppInfo for given @uri_scheme or %NULL on error. + * Returns: (transfer full): #GAppInfo for given @uri_scheme or %NULL on error. **/ GAppInfo * g_app_info_get_default_for_uri_scheme (const char *uri_scheme)