This fixes a crash: the widget installed a handler for the parent's hide signal, but was destroyed before the parent without disconnecting the signal. Fixes: https://bugs.launchpad.net/bugs/1246536.
Approved by Sebastien Bacher, Charles Kerr, PS Jenkins bot.