def METHOD_NAME(self, win, METHOD_NAME):
    if METHOD_NAME == Gtk.ResponseType.OK:
        # Save metadata
        self._panel.save()
    win.hide()
    win.disconnect(self.__resp_sig)
    win.destroy()