[gail] Proper connection to a toplevel window destroy signal
Only connect to the destroy of a toplevel window if it was really added to the toplevel list of windows. The destroy callback was added to remove the window from the toplevel list. The callback doesn't cause a error, but would iterate on the toplevel list without success.
Showing with 17 additions and 15 deletions