[gnome-software] snap: Do not show results without actual icons



commit cd538087c0085d457af01cdbf5a4e46660376e76
Author: Richard Hughes <richard hughsie com>
Date:   Thu Sep 14 12:22:42 2017 +0100

    snap: Do not show results without actual icons
    
    We're required icons from upstream projects for a long time now.

 plugins/snap/gs-plugin-snap.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/plugins/snap/gs-plugin-snap.c b/plugins/snap/gs-plugin-snap.c
index 177bacc..6e2e259 100644
--- a/plugins/snap/gs-plugin-snap.c
+++ b/plugins/snap/gs-plugin-snap.c
@@ -506,15 +506,7 @@ load_icon (GsPlugin *plugin, GsApp *app, const gchar *icon_url, GCancellable *ca
 {
        GsPluginData *priv = gs_plugin_get_data (plugin);
 
-       if (icon_url == NULL || g_strcmp0 (icon_url, "") == 0) {
-               g_autoptr(AsIcon) icon = as_icon_new ();
-               as_icon_set_kind (icon, AS_ICON_KIND_STOCK);
-               as_icon_set_name (icon, "package-x-generic");
-               gs_app_add_icon (app, icon);
-               return TRUE;
-       }
-
-       /* icon is optional, either loaded from snapd or from a URL */
+       /* icon is either loaded from snapd or from a URL */
        if (g_str_has_prefix (icon_url, "/")) {
                g_autoptr(SnapdIcon) icon = NULL;
 


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