use die instead of save_yourself and add arg to shutdown func

This commit is contained in:
Marcos Pinto 2008-01-13 05:00:04 +00:00
commit dc60e26c59

View file

@ -135,7 +135,7 @@ class DelugeGTK:
try: try:
import gnome.ui import gnome.ui
self.client = gnome.ui.Client() self.client = gnome.ui.Client()
self.client.connect("save_yourself", self.shutdown) self.client.connect("die", self.shutdown)
except: except:
pass pass
@ -1739,7 +1739,7 @@ want to remove all seeding torrents?")):
else: else:
self.shutdown() self.shutdown()
def shutdown(self): def shutdown(self, arg=None):
gtk.quit_add(0, self.manager.quit) gtk.quit_add(0, self.manager.quit)
self.window.hide() self.window.hide()
self.save_column_widths() self.save_column_widths()