Closed MGlolenstine closed 4 years ago
That's normal because run()
creates a new inner gtk+ event loop.
You should call .destroy()
on your popup to end this, I believe.
Destroy still doesn't kill the event loop. The window does close, but with the same problem as above.
The doc says to either destroy or send a response. Maybe try to send a response. Or maybe ask the gtk+ people. I don't remember how that works.
Ok, thanks for your help!
window.destroy();
gtk::main_quit();
Did the trick!
Thanks!
I have a class
Popup
, that opens a popup, which has agtk::Window(gtk::WindowType::Popup)
for a parent. But whenever I run it usingit never stops, or at least it never continues onward from that
Popup::run(pt);
line. Stuff after that line doesn't get executed and the function never returns.I'm currently closing it like this
I'm not sure if that only closes the window and leaves other stuff running or if it closes everything.
What would the correct way to close a popup be in this case?