[gnome-software] Always load the fallback icon at 64x64 size
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Always load the fallback icon at 64x64 size
- Date: Fri, 10 Oct 2014 14:59:36 +0000 (UTC)
commit 63ea210340e2eae5ba716ede048df26e44145f4b
Author: Richard Hughes <richard hughsie com>
Date: Fri Oct 10 15:59:02 2014 +0100
Always load the fallback icon at 64x64 size
This may be just a unmolested upstream icon or an SVG.
Should resolve: https://bugzilla.gnome.org/show_bug.cgi?id=738162
src/plugins/gs-plugin-appstream.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index a1c1a18..90e87cd 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -275,7 +275,10 @@ _as_app_get_icon_for_scale (AsApp *app, gint scale, GError **error)
/* fallback */
filename = g_build_filename (icon_path, icon, NULL);
- pixbuf = gdk_pixbuf_new_from_file (filename, error);
+ pixbuf = gdk_pixbuf_new_from_file_at_scale (filename, 64, 64,
+ FALSE, error);
+ if (pixbuf == NULL)
+ goto out;
out:
g_free (filename_hidpi);
g_free (filename_lodpi);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]