How to resize dialog to be as small as possible?

I’m using gtk-rs and need to resize dialog window to be as small as possible.

This is my dialog in Glade
Zrzut ekranu z 2020-12-01 11-51-01

Sometimes I just hide selected area and sometimes Label “Stage 1/2” and windows looks that after changes
Zrzut ekranu z 2020-12-01 11-50-43

and I need to resize it manually to this(just looks better)
Zrzut ekranu z 2020-12-01 11-50-48

How can I resize it automatically from code?

Just call dialog.resize(1, 1) after hiding the child widgets. That should do the trick.


1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.