From 59c9584fe095dc13ae0f418cec12a91b16d4738f Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sat, 19 Nov 2016 10:36:43 +0000 Subject: [PATCH] [GTKUI] Revert use of non-existent mainwindow.get_window method --- deluge/ui/gtkui/aboutdialog.py | 2 +- deluge/ui/gtkui/path_combo_chooser.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deluge/ui/gtkui/aboutdialog.py b/deluge/ui/gtkui/aboutdialog.py index 9fb9de23b..df6b5aa22 100644 --- a/deluge/ui/gtkui/aboutdialog.py +++ b/deluge/ui/gtkui/aboutdialog.py @@ -18,7 +18,7 @@ from deluge.ui.gtkui.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.WIN_POS_CENTER) self.about.set_program_name(_('Deluge')) if windows_check: diff --git a/deluge/ui/gtkui/path_combo_chooser.py b/deluge/ui/gtkui/path_combo_chooser.py index 331671121..00e948391 100755 --- a/deluge/ui/gtkui/path_combo_chooser.py +++ b/deluge/ui/gtkui/path_combo_chooser.py @@ -1038,7 +1038,7 @@ class PathChooserComboBox(gtk.HBox, StoredValuesPopup, GObject): self.open_filechooser_dialog_button = self.builder.get_object('button_open_dialog') self.filechooser_button = self.open_filechooser_dialog_button 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.default_text = None 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.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.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): if not self.setting_accelerator_key: