[GTK3] Fix About 'MainWindow' object has no attribute 'get_window'
This commit is contained in:
parent
bbb1b44a23
commit
0ace086de4
@ -21,7 +21,7 @@ from .common import get_deluge_icon, get_pixbuf
|
|||||||
class AboutDialog(object):
|
class AboutDialog(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.about = Gtk.AboutDialog()
|
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_position(Gtk.WindowPosition.CENTER)
|
||||||
self.about.set_name(_('Deluge'))
|
self.about.set_name(_('Deluge'))
|
||||||
self.about.set_program_name(_('Deluge'))
|
self.about.set_program_name(_('Deluge'))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user