[gnome-software] Use application-x-addon icon for packages
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-software] Use application-x-addon icon for packages
- Date: Mon, 11 May 2015 08:56:04 +0000 (UTC)
commit 21b971c1011854060b185332028ff2991af195c0
Author: Kalev Lember <kalevlember gmail com>
Date:   Sun May 10 20:20:30 2015 +0200
    Use application-x-addon icon for packages
 src/gs-app.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app.c b/src/gs-app.c
index 4c17452..c2abc91 100644
--- a/src/gs-app.c
+++ b/src/gs-app.c
@@ -828,6 +828,12 @@ gs_app_get_pixbuf (GsApp *app)
                                                              GTK_ICON_LOOKUP_FORCE_SIZE,
                                                              NULL);
 
+       } else if (app->priv->pixbuf == NULL && gs_app_get_kind (app) == GS_APP_KIND_PACKAGE) {
+               app->priv->pixbuf = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
+                                                             "application-x-addon", 64,
+                                                             GTK_ICON_LOOKUP_USE_BUILTIN |
+                                                             GTK_ICON_LOOKUP_FORCE_SIZE,
+                                                             NULL);
        } else if (app->priv->pixbuf == NULL && gs_app_get_kind (app) == GS_APP_KIND_MISSING) {
                app->priv->pixbuf = gtk_icon_theme_load_icon (gtk_icon_theme_get_default (),
                                                              "dialog-question-symbolic", 16,
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]