GtkCellRendererPixbuf draws pixbufs wrong size and blurry when window scale != 1 (Retina/HiDPI)
@mjog
Submitted by Michael Gratton Link to original bug (#765167)
Description
When a GtkCellRendererPixbuf is set up to draw a GdkPixbuf and gdk_window_get_scale_factor() does not return 1, the GdkPixbuf is not drawn at the correct size and appears blurry.
For example, for Retina/HiDPI displays, the window scale will likely be set to 2, resulting in a 32x32 pixbuf being drawn at 64x64 and blurry.
The example found here: https://python-gtk-3-tutorial.readthedocs.org/en/latest/iconview.html provides a test case. Run that, open the GTK inspector, select the Visual tab, and change the value of the window scaling. Going from 1 to 2 doubles the size of the icons and renders them blurry, going the opposite direction halves the size and renders them crisp.
I would expect a pixbuf to always be rendered at its actual size, regardless of the window scale, and never rendered blurry.
This doesn't seem to be a problem when using a GtkCellRendererPixbuf with icon names.
GTK+ 3.20.3
Version: 3.20.x