]> spindle.queued.net Git - midori/commitdiff
Work-around too many apps in preferences on Win32
authorPaweł Forysiuk <tuxator@o2.pl>
Tue, 10 Apr 2012 19:29:06 +0000 (21:29 +0200)
committerChristian Dywan <christian@twotoasts.de>
Tue, 10 Apr 2012 19:29:56 +0000 (21:29 +0200)
katze/katze-utils.c

index 3c211aa05bc877b8c90b8cb23eb6bd0e0ef86c99..f417071291d7b961b53b10099d1673cb4228d8e4 100644 (file)
@@ -331,7 +331,13 @@ proxy_widget_string_destroy_cb (GtkWidget* proxy,
 static GList*
 katze_app_info_get_all_for_category (const gchar* category)
 {
+    #ifdef _WIN32
+    /* FIXME: Real filtering by category would be better */
+    const gchar* content_type = g_content_type_from_mime_type (category);
+    GList* all_apps = g_app_info_get_all_for_type (content_type);
+    #else
     GList* all_apps = g_app_info_get_all ();
+    #endif
     GList* apps = NULL;
     guint i = 0;
     GAppInfo* info;