[GTK3] Fix About 'MainWindow' object has no attribute 'get_window'

This commit is contained in:
hugosenari 2018-08-20 06:57:12 -03:00 committed by Calum Lind
parent bbb1b44a23
commit 0ace086de4

View File

@ -21,7 +21,7 @@ from .common import get_deluge_icon, get_pixbuf
class AboutDialog(object):
def __init__(self):
self.about = Gtk.AboutDialog()
self.about.set_transient_for(component.get('MainWindow').get_window())
self.about.set_transient_for(component.get('MainWindow').window)
self.about.set_position(Gtk.WindowPosition.CENTER)
self.about.set_name(_('Deluge'))
self.about.set_program_name(_('Deluge'))