gnome-software/0001-gs-app-Add-additional-icon-debug-information.patch
DistroBaker 504688b143 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/gnome-software.git#dbac9fa7a31701e5c4e70faa75ee216c66053da5
2021-03-19 21:13:00 +00:00

33 lines
1.2 KiB
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

From 81a2e01d407fc903a83b4c1a82749d2591397240 Mon Sep 17 00:00:00 2001
From: Philip Withnall <pwithnall@endlessos.org>
Date: Tue, 16 Mar 2021 13:33:40 +0000
Subject: [PATCH 1/4] gs-app: Add additional icon debug information
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
---
lib/gs-app.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/gs-app.c b/lib/gs-app.c
index 771743330..cb2549d4c 100644
--- a/lib/gs-app.c
+++ b/lib/gs-app.c
@@ -1828,11 +1828,12 @@ gs_app_get_icon_for_size (GsApp *app,
* lazily created. */
for (guint i = 0; priv->icons != NULL && i < priv->icons->len; i++) {
GIcon *icon = priv->icons->pdata[i];
+ g_autofree gchar *icon_str = g_icon_to_string (icon);
guint icon_width = gs_icon_get_width (icon);
guint icon_scale = gs_icon_get_scale (icon);
- g_debug ("\tConsidering icon of type %s, width %u×%u",
- G_OBJECT_TYPE_NAME (icon), icon_width, icon_scale);
+ g_debug ("\tConsidering icon of type %s (%s), width %u×%u",
+ G_OBJECT_TYPE_NAME (icon), icon_str, icon_width, icon_scale);
/* Ignore icons with unknown width and skip over ones which
* are too small. */
--
2.30.2