From a19023277f5cd7c468dc855b14e1247695e23600 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 13 Aug 2024 10:28:12 -0400 Subject: [PATCH] icon helper: Fix an argument order mishap It seems that for a long time, no compiler saw it fit to warn about this, even though they argument types are not the same. --- gtk/gtkiconhelper.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/gtkiconhelper.c b/gtk/gtkiconhelper.c index 6abb421be4..4d97840b9d 100644 --- a/gtk/gtkiconhelper.c +++ b/gtk/gtkiconhelper.c @@ -83,8 +83,8 @@ get_icon_lookup_flags (GtkIconHelper *self, static GdkPaintable * ensure_paintable_for_gicon (GtkIconHelper *self, GtkCssStyle *style, - GtkTextDirection dir, int scale, + GtkTextDirection dir, gboolean preload, GIcon *gicon, gboolean *symbolic) @@ -104,8 +104,9 @@ ensure_paintable_for_gicon (GtkIconHelper *self, icon = gtk_icon_theme_lookup_by_gicon (icon_theme, gicon, MIN (width, height), + scale, dir, - scale, flags); + flags); *symbolic = gtk_icon_paintable_is_symbolic (icon); return GDK_PAINTABLE (icon);