I have a GtkListView that it’s used to show chat messages and I’m trying to show the photos attached to this messages. Each item is made of a vertical GtkBox that contains both the GtkPicture for the photo and a GtkLabel for the catpion below the photo. I’d like the GtkPicture to automatically expand to the width of the box (keeping it’s aspect ratio), but setting hexpand to the photo, it just doesn’t do anything for some reason. The only way I found to do this is to manually set the size request of the photo, but then the problem is that when resizing the window, the picture will have empty borders because it will shrink to fit the content, but the size request is still the original one.
Any help is really appreciated