In GTK 3 app I use glade to create dialog at the start of application and I use same dialog until end.
Instead deleting and creating it every time, I hide it.
Until now I used hide_on_delete
function which worked fine with dialog.run()
method.
But there are 2 problems with this:
- In GTK 4 there is no hide_on_delete methods
- In GTK 3,
hide_on_delete
not works when usingdialog.connect_response
insteaddialog.run()
How should I hide properly widget instead destroying it?
Creating this dialog on demand is not possible(at least for now)