make sure uic_context_prepare_close is called before the window is destroyed (GTK)

rework window closing behavior and reference counting (GTK)

(0) -1000 -300 -100 -30 -10 -2 +2 +10 +30 tip

mercurial