r-senior
March 5th, 2012, 08:57 PM
Does anyone know how this is done with GTK3? Or even GTK2?
For example, an application has a document open. It's modified and the user hits the window close button. I show a Save/Don't Save/Cancel dialog. If the user hits Cancel, the window should stay open.
But the window has already gone. :(
I've done this in wx and it has CanVeto() and Veto() methods but I can't see anything similar in GTK.
Am I perhaps using the wrong event (destroy)?
For example, an application has a document open. It's modified and the user hits the window close button. I show a Save/Don't Save/Cancel dialog. If the user hits Cancel, the window should stay open.
But the window has already gone. :(
I've done this in wx and it has CanVeto() and Veto() methods but I can't see anything similar in GTK.
Am I perhaps using the wrong event (destroy)?