[gnome-software] If no application icon is available for local packages, use a generic icon
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] If no application icon is available for local packages, use a generic icon
- Date: Wed, 29 Jan 2014 12:06:19 +0000 (UTC)
commit cdd9e4dad36d3456c56717a8dc44d86c188e27e2
Author: Richard Hughes <richard hughsie com>
Date: Wed Jan 29 11:43:39 2014 +0000
If no application icon is available for local packages, use a generic icon
src/gs-shell-details.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell-details.c b/src/gs-shell-details.c
index 6c12dde..acf36fe 100644
--- a/src/gs-shell-details.c
+++ b/src/gs-shell-details.c
@@ -495,6 +495,8 @@ gs_shell_details_refresh_all (GsShellDetails *shell_details)
}
if (pixbuf == NULL)
pixbuf = gs_app_get_pixbuf (priv->app);
+ if( pixbuf == NULL && gs_app_get_state (priv->app) == GS_APP_STATE_LOCAL)
+ pixbuf = gs_pixbuf_load ("package-x-generic-symbolic", 96, NULL);
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "application_details_icon"));
if (pixbuf != NULL) {
gtk_image_set_from_pixbuf (GTK_IMAGE (widget), pixbuf);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]