GNOME Bugzilla – Bug 790287
gtk+4, GtkWindow: icon_from_list() does not scale down large icons
Last modified: 2017-11-26 23:55:27 UTC
There are two errors in icon_from_list() that make it fail to scale down a large icon as intended. In the division size / gdk_texture_get_width(texture), both operands are integers and size < gdk_texture_get_width(texture). The result is 0. cairo_set_source_surface() must be called after cairo_scale().
Created attachment 363497 [details] [review] patch: GtkWindow: Fix the down-scaling in icon_from_list()