Make sure GtkWindow fits all children

593 views Asked by At

How do I make sure my GtkWindow fits all children?

As you can see, currently my GtkWindow can shrink to the point the children do not fit in it.

enter image description here

I have been browsing the documentation, but there doesn't even seem to be a way to hard-code the minimum size, let alone let it dynamically depend on the size of my children.

The UI is written in XML and loaded using GtkBuilder.

1

There are 1 answers

0
Jeroen On

As @JoséFonte pointed out in the comments, I had to disable shrinking for all children of my GtkPaned.

To achieve this I used Glade, and then for each child opened its properties, went to the packing tab, and disabled Shrink.

enter image description here