dripton / Slugathon

Clone of the old Avalon Hill fantasy wargame Titan, using Python / PyGTK / Twisted
https://github.com/dripton/Slugathon/wiki
8 stars 2 forks source link

Clean up game-related GUI windows when a game ends #59

Closed dripton closed 14 years ago

dripton commented 15 years ago

We need to cleanup all the windows related to a game when the game ends, but not the Anteroom.

dripton commented 14 years ago

[3bcd80f37f67] is a start, but GUIMasterBoard doesn't have references to every dialog and window so it can't clean them all up.

dripton commented 14 years ago

Setting set_destroy_with_parent(True) on all the dialogs might simplify this.

dripton commented 14 years ago

[413157b4443d13d7ba09643f1492d26a1e3d5912] adds set_transient_for and set_destroy_with_parent(True) to the windows and dialogs that were missing them.

dripton commented 14 years ago

I think it's good enough now. Automatic closing might be annoying.