mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 14:06:15 +01:00
Add GI annotations to GAppInfo and GDesktopAppInfo
This commit is contained in:
parent
e2b185f97a
commit
1f84c5b72f
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user