[gnome-software: 1/4] gs-app: Add additional icon debug information




commit 81a2e01d407fc903a83b4c1a82749d2591397240
Author: Philip Withnall <pwithnall endlessos org>
Date:   Tue Mar 16 13:33:40 2021 +0000

    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. */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]