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:
@@ -83,8 +83,8 @@ get_icon_lookup_flags (GtkIconHelper *self,
|
|||||||
static GdkPaintable *
|
static GdkPaintable *
|
||||||
ensure_paintable_for_gicon (GtkIconHelper *self,
|
ensure_paintable_for_gicon (GtkIconHelper *self,
|
||||||
GtkCssStyle *style,
|
GtkCssStyle *style,
|
||||||
GtkTextDirection dir,
|
|
||||||
int scale,
|
int scale,
|
||||||
|
GtkTextDirection dir,
|
||||||
gboolean preload,
|
gboolean preload,
|
||||||
GIcon *gicon,
|
GIcon *gicon,
|
||||||
gboolean *symbolic)
|
gboolean *symbolic)
|
||||||
@@ -104,8 +104,9 @@ ensure_paintable_for_gicon (GtkIconHelper *self,
|
|||||||
icon = gtk_icon_theme_lookup_by_gicon (icon_theme,
|
icon = gtk_icon_theme_lookup_by_gicon (icon_theme,
|
||||||
gicon,
|
gicon,
|
||||||
MIN (width, height),
|
MIN (width, height),
|
||||||
|
scale,
|
||||||
dir,
|
dir,
|
||||||
scale, flags);
|
flags);
|
||||||
|
|
||||||
*symbolic = gtk_icon_paintable_is_symbolic (icon);
|
*symbolic = gtk_icon_paintable_is_symbolic (icon);
|
||||||
return GDK_PAINTABLE (icon);
|
return GDK_PAINTABLE (icon);
|
||||||
|
|||||||
Reference in New Issue
Block a user