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:
Cosimo Cecchi
2010-11-18 18:45:56 +01:00
parent a70ba9c8b1
commit 94c67d8420
2 changed files with 105 additions and 25 deletions

View File

@@ -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);