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.
This commit is contained in:
Matthias Clasen
2024-08-13 10:28:12 -04:00
parent 72dc9e3bf1
commit a19023277f

View File

@@ -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);