[Xfce4-commits] <midori:master> Work-around too many apps in preferences on Win32

Christian Dywan noreply at xfce.org
Tue Apr 10 21:32:03 CEST 2012


Updating branch refs/heads/master
         to 89dbbcc1b0c485ab9b22e190096b79751e734ff2 (commit)
       from f76d5385647283105b1bff9f57e9350ec63bb220 (commit)

commit 89dbbcc1b0c485ab9b22e190096b79751e734ff2
Author: Paweł Forysiuk <tuxator at o2.pl>
Date:   Tue Apr 10 21:29:06 2012 +0200

    Work-around too many apps in preferences on Win32

 katze/katze-utils.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/katze/katze-utils.c b/katze/katze-utils.c
index 3c211aa..f417071 100644
--- a/katze/katze-utils.c
+++ b/katze/katze-utils.c
@@ -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;


More information about the Xfce4-commits mailing list