Fix shutdown() to accept any number of arguments

This commit is contained in:
Andrew Resch 2008-07-29 05:47:49 +00:00
commit 48ab9d7522

View file

@ -227,7 +227,7 @@ class GtkUI:
else: else:
self.shutdown() self.shutdown()
def shutdown(self, data=None): def shutdown(self, *args, **kwargs):
log.debug("gtkui shutting down..") log.debug("gtkui shutting down..")
# Make sure the config is saved. # Make sure the config is saved.
@ -240,7 +240,10 @@ class GtkUI:
client.shutdown() client.shutdown()
except: except:
pass pass
try:
gtk.main_quit()
except RuntimeError:
pass
def _on_new_core(self, data): def _on_new_core(self, data):
component.start() component.start()