[gnome-software] Hide the KDE Kid3 in preference to the Qt one



commit f3b0f69887dd295899d1624fe4c45d1d61f6c443
Author: Richard Hughes <richard hughsie com>
Date:   Mon Sep 29 18:00:18 2014 +0100

    Hide the KDE Kid3 in preference to the Qt one

 src/gs-plugin-loader.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index 44e0b74..8194816 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -671,6 +671,13 @@ gs_plugin_loader_filter_qt_for_gtk (GsApp *app, gpointer user_data)
                         gs_plugin_loader_get_app_str (app));
                return FALSE;
        }
+
+       /* hide the KDE version in preference to the Qt one */
+       if (g_strcmp0 (gs_app_get_id (app), "kid3.desktop") == 0) {
+               g_debug ("removing KDE version of %s",
+                        gs_plugin_loader_get_app_str (app));
+               return FALSE;
+       }
        return TRUE;
 }
 
@@ -1306,6 +1313,7 @@ gs_plugin_loader_get_popular_thread_cb (GTask *task,
        /* filter package list */
        gs_plugin_list_filter (&state->list, gs_plugin_loader_app_is_valid, NULL);
        gs_plugin_list_filter (&state->list, gs_plugin_loader_app_is_non_installed, NULL);
+       gs_plugin_list_filter (&state->list, gs_plugin_loader_filter_qt_for_gtk, NULL);
        if (state->list == NULL) {
                g_task_return_new_error (task,
                                         GS_PLUGIN_LOADER_ERROR,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]