gnome-software/0001-gs-app-Add-additional-...

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