0
votes

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
Hi, which is the widget hierarchy? You can set a minimum widget size with Gtk's Widget set_size_request function/method.José Fonte
@JoséFonte I have a ApplicationWindow <- Stack <- PanedJeroen
Which language are you using? Did you use glade to design the UI? Check Gtk's Paned child widget shrink/resize flags. That's your solution/answer.José Fonte
@JoséFonte Is there also a way to scale automatically?Jeroen
it depends on what you mean with scale automatically. You want the entry boxes to grow if the container grows? The sidebar already expands so i think you meant the entries. Set Gtk EntryBox Horizontal expand flag as ON/TRUE.José Fonte

1 Answers

0
votes

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