'Button is useless, only there because GTK likes it. Takes the
repourl (Couch IP) from self.ip_entry and connect to it if possible.'

def on_click_ok(self, button=None):

    repourl = self.ip_entry.get_text()
    if self.connectCouchCallback(repourl, parent=self):
        self.destroy()
