summaryrefslogtreecommitdiffstats
path: root/deluge/ui/gtk3/gtkui.py
diff options
context:
space:
mode:
authorhugosenari <hugosenari@gmail.com>2018-08-20 06:18:49 -0300
committerCalum Lind <calumlind@gmail.com>2018-11-02 08:45:39 +0000
commitdfed17ac0d30a8367a706f09bd6ed320093e0f30 (patch)
tree1fd7059bf280fadbce6b1287b47edac6a507f219 /deluge/ui/gtk3/gtkui.py
parent2f879c33f338d8abbda96bd108664b7811e85681 (diff)
downloaddeluge-dfed17ac0d30a8367a706f09bd6ed320093e0f30.tar.gz
deluge-dfed17ac0d30a8367a706f09bd6ed320093e0f30.tar.bz2
deluge-dfed17ac0d30a8367a706f09bd6ed320093e0f30.zip
[GTK3] Fix import and attribute warnings
Fixes: - warning import GConf - Gtk is not defined - 'ResponseType' has no attribute 'Yes' - selection.data should be selection.get_data
Diffstat (limited to 'deluge/ui/gtk3/gtkui.py')
-rw-r--r--deluge/ui/gtk3/gtkui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deluge/ui/gtk3/gtkui.py b/deluge/ui/gtk3/gtkui.py
index f0e363bdc..8f872e94b 100644
--- a/deluge/ui/gtk3/gtkui.py
+++ b/deluge/ui/gtk3/gtkui.py
@@ -354,7 +354,7 @@ class GtkUI(object):
def on_dialog_response(response):
"""User response to switching mode dialog."""
- if response == ResponseType.Yes:
+ if response == ResponseType.YES:
# Turning off standalone
self.config['standalone'] = False
self._start_thinclient()