Merge branch 'fix-unscaled-fallback-icon' into 'gtk-3-24'

Take UI scale into acount when loading "image-missing" fallback

See merge request GNOME/gtk!5438
This commit is contained in:
Matthias Clasen 2023-01-22 00:01:07 +00:00
commit 1a17e71432

View File

@ -484,9 +484,10 @@ ensure_surface_for_gicon (GtkIconHelper *self,
if (destination == NULL)
{
GError *error = NULL;
destination = gtk_icon_theme_load_icon (icon_theme,
destination = gtk_icon_theme_load_icon_for_scale (icon_theme,
"image-missing",
width,
MIN (width, height),
scale,
flags | GTK_ICON_LOOKUP_USE_BUILTIN | GTK_ICON_LOOKUP_GENERIC_FALLBACK,
&error);
/* We include this image as resource, so we always have it available or