Allow GtkImages to shrink to fit when required
- Date: Thu, 20 Aug 2015 14:35:13 +0100
- From: adlo <adloconwy@xxxxxxxxx>
- Subject: Allow GtkImages to shrink to fit when required
I have a GTK2 program that contains a table of GtkImages derived from Cairo surfaces. These images have a signal handler that scales the surfaces as the images are resized.
As I add more images to my table, the images remain the same size, instead of shrinking to fit as intended. This causes my window to get bigger and bigger until eventually it expands off the screen.
Also, if I increase the size of the window, the images will grow, but I am then unable to shrink the window below this new size.
How can I prevent these things from happening, and ensure that the images will always shrink to fit when required?
gtk-list mailing list