[qt, gtk] common mess clean up.