`GtkImage::surface` property not bound
nt8r opened this issue · comments
Hi,
Presently the surface
property of Gtk.Image
is marked with ignore = true
in Gir.toml
. I tried removing the ignore line and regenerating bindings, and things seem to work as expected afterward.
Gtk.CellRendererPixbuf
's surface
property is in the same situation. Is there a reason cairo::Surface
-typed properties are currently ignored?
These properties in particular are important because they allow setting image contents with a specific scale associated, which can avoid GDK blindly upscaling and blurring raster content when at scale factor >1: see gtk#613.
If you put cairo.Surface
into the manual section in Gir.toml
it should be possible to autogenerate these. I currently don't see a reason why this shouldn't be done.
Do you want to try and create a PR?
That should then be enough, yes.