Work-around too many apps in preferences on Win32

This commit is contained in:
Paweł Forysiuk 2012-04-10 21:29:06 +02:00 committed by Christian Dywan
parent f76d538564
commit 89dbbcc1b0

View file

@ -331,7 +331,13 @@ proxy_widget_string_destroy_cb (GtkWidget* proxy,
static GList* static GList*
katze_app_info_get_all_for_category (const gchar* category) 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 (); GList* all_apps = g_app_info_get_all ();
#endif
GList* apps = NULL; GList* apps = NULL;
guint i = 0; guint i = 0;
GAppInfo* info; GAppInfo* info;