[gnome-software/wip/kalev/session-api-regular-packages: 5/5] Use application-x-addon icon for packages
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/kalev/session-api-regular-packages: 5/5] Use application-x-addon icon for packages
- Date: Sun, 10 May 2015 18:23:16 +0000 (UTC)
commit d925f74846d3c960dfb8cf5127b54a673bc7a7d0
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]