def quit_daemon(self): try: from ubuntutweak.policykit import proxy proxy.exit() except: pass
def destroy(self, widget=None): self.do_notify() self.save_gui_state() try: proxy.exit() except Exception, e: log.error(e)
def destroy(self, widget): self.do_notify() self.save_gui_state() proxy.exit() gtk.main_quit()