'Disable the OK button if the email is invalid'

def _email_entry_changed(self, x, y):

    ok_button = self.get_widget_for_response(gtk.RESPONSE_OK)
    if self.email_entry.is_valid():
        ok_button.set_sensitive(True)
    else:
        ok_button.set_sensitive(False)
