Fix shutdown() to accept any number of arguments

This commit is contained in:
Andrew Resch 2008-07-29 05:47:49 +00:00
parent 971c7e6f1d
commit 48ab9d7522
1 changed files with 5 additions and 2 deletions

View File

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