GtkPicture: Add can-grow property
I've noticed that GtkPicture
can't size itself to just fit the content with its natural size, without expanding to fill the whole space. This results in things like this:
That thing above is a GtkListView
with vscroll-policy=natural
. I want that GtkPicture
to just be sized using the paintable's intrinsic size, without taking all the spacing at the bottom. I'm also using halign=end
and valign=start
, but ofc that just changes the internal allocation, so even if the paintable is sized as I wanted, the widget keeps measuring all the available space (height-for-width using paintable aspect ratio).
For this reason I was thinking to add a GtkPicture::can-grow
property, which would be the opposite of the current GtkPicture::can-shrink
one.
I can work on a MR if you think this is OK to have.