[GTKUI] Revert use of non-existent mainwindow.get_window method

This commit is contained in:
Calum Lind 2016-11-19 10:36:43 +00:00
parent 674610ef7d
commit 59c9584fe0
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ from deluge.ui.gtkui.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.WIN_POS_CENTER) self.about.set_position(gtk.WIN_POS_CENTER)
self.about.set_program_name(_('Deluge')) self.about.set_program_name(_('Deluge'))
if windows_check: if windows_check:

View File

@ -1038,7 +1038,7 @@ class PathChooserComboBox(gtk.HBox, StoredValuesPopup, GObject):
self.open_filechooser_dialog_button = self.builder.get_object('button_open_dialog') self.open_filechooser_dialog_button = self.builder.get_object('button_open_dialog')
self.filechooser_button = self.open_filechooser_dialog_button self.filechooser_button = self.open_filechooser_dialog_button
self.filechooserdialog = self.builder.get_object('filechooserdialog') self.filechooserdialog = self.builder.get_object('filechooserdialog')
self.filechooserdialog.set_transient_for(component.get('MainWindow').get_window()) self.filechooserdialog.set_transient_for(component.get('MainWindow').window)
self.folder_name_label = self.builder.get_object('folder_name_label') self.folder_name_label = self.builder.get_object('folder_name_label')
self.default_text = None self.default_text = None
self.button_properties = self.builder.get_object('button_properties') self.button_properties = self.builder.get_object('button_properties')
@ -1387,7 +1387,7 @@ class PathChooserComboBox(gtk.HBox, StoredValuesPopup, GObject):
self.visible_rows_label = self.builder.get_object('visible_rows_label') self.visible_rows_label = self.builder.get_object('visible_rows_label')
self.show_hidden_files_checkbutton = self.builder.get_object('show_hidden_files_checkbutton') self.show_hidden_files_checkbutton = self.builder.get_object('show_hidden_files_checkbutton')
self.show_folder_name_on_button_checkbutton = self.builder.get_object('show_folder_name_on_button_checkbutton') self.show_folder_name_on_button_checkbutton = self.builder.get_object('show_folder_name_on_button_checkbutton')
self.config_dialog.set_transient_for(component.get('MainWindow').get_window()) self.config_dialog.set_transient_for(component.get('MainWindow').window)
def on_close(widget, event=None): def on_close(widget, event=None):
if not self.setting_accelerator_key: if not self.setting_accelerator_key: