mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-04 00:13:40 +02:00
appinfo: add API to get fallback and recommended GAppInfos for a ctype
This ways UIs can differentiate between them, and show them in different section. - a recommended app is an application that claims to support a content type directly, not by a supertype derivation. - a fallback app is an application that claims to support a supertype of a given content type.
This commit is contained in:
@@ -175,6 +175,9 @@ gboolean g_app_info_delete (GAppInfo *appinfo);
|
||||
|
||||
GList * g_app_info_get_all (void);
|
||||
GList * g_app_info_get_all_for_type (const char *content_type);
|
||||
GList * g_app_info_get_recommended_for_type (const gchar *content_type);
|
||||
GList * g_app_info_get_fallback_for_type (const gchar *content_type);
|
||||
|
||||
void g_app_info_reset_type_associations (const char *content_type);
|
||||
GAppInfo *g_app_info_get_default_for_type (const char *content_type,
|
||||
gboolean must_support_uris);
|
||||
|
Reference in New Issue
Block a user