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
parent dbe41a3cd5
commit dc60e26c59
1 changed files with 2 additions and 2 deletions

View File

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