[gnome-software] Do not show local applications that do not have an icon specified



commit da89a6b5d213868addac7cb1f113229a60fa82e5
Author: Richard Hughes <richard hughsie com>
Date:   Tue Feb 25 13:03:15 2014 +0000

    Do not show local applications that do not have an icon specified

 src/gs-plugin-loader.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-plugin-loader.c b/src/gs-plugin-loader.c
index a65b463..a5934a6 100644
--- a/src/gs-plugin-loader.c
+++ b/src/gs-plugin-loader.c
@@ -494,6 +494,12 @@ gs_plugin_loader_app_is_valid (GsApp *app, gpointer user_data)
                         gs_plugin_loader_get_app_str (app));
                return FALSE;
        }
+       if (gs_app_get_kind (app) == GS_APP_KIND_NORMAL &&
+           gs_app_get_pixbuf (app) == NULL) {
+               g_debug ("app invalid as no pixbuf %s",
+                        gs_plugin_loader_get_app_str (app));
+               return FALSE;
+       }
        return TRUE;
 }
 


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