take care for winners

This commit is contained in:
Dimitur Kirov 2006-04-07 23:49:49 +00:00
parent eb4aa3b9c9
commit 077e3e1084
1 changed files with 5 additions and 1 deletions

View File

@ -1892,6 +1892,10 @@ if __name__ == '__main__':
q = Queue.Queue(100)
dialog = dialogs.ProgressDialog(_('Migrating Logs...'),
_('Please wait while logs are being migrated...'), q)
if os.name == 'nt' and gtk.pygtk_version > (2, 8, 0):
idlequeue = idlequeue.SelectIdleQueue()
else:
idlequeue = GlibIdleQueue()
def on_result(*arg):
dialog.dialog.destroy()
dialog.dialog = None
@ -1900,7 +1904,7 @@ if __name__ == '__main__':
check_paths.check_and_possibly_create_paths()
Interface()
m = MigrateCommand(on_result)
m.set_idlequeue(GlibIdleQueue())
m.set_idlequeue(idlequeue)
m.start()
gtk.main()
else: