[glib] appinfo: add win32 fallback implementation
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] appinfo: add win32 fallback implementation
- Date: Tue, 23 Nov 2010 09:30:57 +0000 (UTC)
commit b3bf7a648453e59daa83f745faf9102a90cdfbac
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Nov 19 10:39:33 2010 +0100
appinfo: add win32 fallback implementation
gio/gwin32appinfo.c | 22 ++++++++++++++++++++++
1 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/gio/gwin32appinfo.c b/gio/gwin32appinfo.c
index 8095298..a441251 100644
--- a/gio/gwin32appinfo.c
+++ b/gio/gwin32appinfo.c
@@ -587,6 +587,28 @@ g_app_info_get_all_for_type (const char *content_type)
return g_list_reverse (infos);
}
+GList *
+g_app_info_get_recommended_for_type (const char *content_type)
+{
+ /* FIXME: this should generate a list of applications that are registered
+ * as direct handlers for the given content type, without using MIME subclassing.
+ * See g_app_info_get_recommended_for_type() in gdesktopappinfo.c for a reference
+ * UNIX implementation.
+ */
+ return g_app_info_get_all_for_type (content_type);
+}
+
+GList *
+g_app_info_get_fallback_for_type (const char *content_type)
+{
+ /* FIXME: this should generate a list of applications that are registered
+ * as handlers for a superclass of the given content type, but are not
+ * direct handlers for the content type itself. See g_app_info_get_fallback_for_type()
+ * in gdesktopappinfo.c for a reference UNIX implementation.
+ */
+ return g_app_info_get_all_for_type (content_type);
+}
+
GAppInfo *
g_app_info_get_default_for_type (const char *content_type,
gboolean must_support_uris)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]