mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +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:
|
* g_app_info_launch_uris:
|
||||||
* @appinfo: a #GAppInfo
|
* @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
|
* @launch_context: (allow-none): a #GAppLaunchContext or %NULL
|
||||||
* @error: a #GError
|
* @error: a #GError
|
||||||
*
|
*
|
||||||
@ -632,7 +632,7 @@ g_app_info_should_show (GAppInfo *appinfo)
|
|||||||
/**
|
/**
|
||||||
* g_app_info_launch_default_for_uri:
|
* g_app_info_launch_default_for_uri:
|
||||||
* @uri: the uri to show
|
* @uri: the uri to show
|
||||||
* @launch_context: an optional #GAppLaunchContext.
|
* @launch_context: (allow-none): an optional #GAppLaunchContext.
|
||||||
* @error: a #GError.
|
* @error: a #GError.
|
||||||
*
|
*
|
||||||
* Utility function that launches the default application
|
* Utility function that launches the default application
|
||||||
|
@ -99,7 +99,7 @@ struct _GAppInfoIface
|
|||||||
const char * (* get_executable) (GAppInfo *appinfo);
|
const char * (* get_executable) (GAppInfo *appinfo);
|
||||||
GIcon * (* get_icon) (GAppInfo *appinfo);
|
GIcon * (* get_icon) (GAppInfo *appinfo);
|
||||||
gboolean (* launch) (GAppInfo *appinfo,
|
gboolean (* launch) (GAppInfo *appinfo,
|
||||||
GList *filenames,
|
GList *files,
|
||||||
GAppLaunchContext *launch_context,
|
GAppLaunchContext *launch_context,
|
||||||
GError **error);
|
GError **error);
|
||||||
gboolean (* supports_uris) (GAppInfo *appinfo);
|
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.
|
* 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 *
|
GAppInfo *
|
||||||
g_app_info_get_default_for_type (const char *content_type,
|
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",
|
* of the URI, up to but not including the ':', e.g. "http",
|
||||||
* "ftp" or "sip".
|
* "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 *
|
GAppInfo *
|
||||||
g_app_info_get_default_for_uri_scheme (const char *uri_scheme)
|
g_app_info_get_default_for_uri_scheme (const char *uri_scheme)
|
||||||
|
Loading…
Reference in New Issue
Block a user