I am using a GtkColumnView to display various kinds of data in a row. This data include strings, but also images. In my current implementation, inspired by the demo code from Workbench, I create a GtkBox in the setup callback and append this as a child to the column cell. In the bind, I insert either a GtkLabel or GtkPicture into this GtkBox. The GtkPicture is shrinkable because I don’t have to display it in its full size.
Now, I have two issues with my implementation:
- The images are very small, the same height as the full text height. How can I avoid these images being shrunken down to the size of the text?
- The table background is white (I am using the
data-tableclass because it is well compressed). Can I make its background transparent?
Regarding the first question, I think I need something like AdwClamp, but in reverse – instead of a maximum size, it needs to restrict the minimum size of the image. I haven’t yet found such an element.