diff options
author | hugosenari <hugosenari@gmail.com> | 2018-08-17 15:30:54 -0300 |
---|---|---|
committer | Calum Lind <calumlind@gmail.com> | 2018-11-02 08:45:39 +0000 |
commit | a8d01fd52f98ee06e02b06f0f20135675eb5173f (patch) | |
tree | 6e3b4d92eb777533cd06bbc9bab8132a32d13de8 /deluge/ui/gtk3/torrentview.py | |
parent | 3a5ec4f5f42a1572b2735229f8bbc27107de6950 (diff) | |
download | deluge-a8d01fd52f98ee06e02b06f0f20135675eb5173f.tar.gz deluge-a8d01fd52f98ee06e02b06f0f20135675eb5173f.tar.bz2 deluge-a8d01fd52f98ee06e02b06f0f20135675eb5173f.zip |
[GTK3] Fix GObject deprecation warnings
GObject.idle_add is deprecated using GLib.idle_add instead
GObject.timeout_add is deprecated using GLib.timeout_add instead
GObject.SIGNAL_RUN_LAST is deprecated; use GObject.SignalFlags.RUN_LAST instead
GObject.GError is deprecated; use GLib.GError instead
GObject.timeout_add is deprecated use GLib.timeout_add instead.
ListStore(str, str) using unicode_literals get_value return utf8.
Diffstat (limited to 'deluge/ui/gtk3/torrentview.py')
-rw-r--r-- | deluge/ui/gtk3/torrentview.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/deluge/ui/gtk3/torrentview.py b/deluge/ui/gtk3/torrentview.py index 9eef68d9d..97f406cc0 100644 --- a/deluge/ui/gtk3/torrentview.py +++ b/deluge/ui/gtk3/torrentview.py @@ -14,7 +14,8 @@ import logging from locale import strcoll from gi.repository.Gdk import ModifierType, keyval_name -from gi.repository.GObject import TYPE_UINT64, idle_add +from gi.repository.GLib import idle_add +from gi.repository.GObject import TYPE_UINT64 from gi.repository.Gtk import EntryIconPosition from twisted.internet import reactor @@ -30,7 +31,7 @@ log = logging.getLogger(__name__) try: CTRL_ALT_MASK = ModifierType.CONTROL_MASK | ModifierType.MOD1_MASK except TypeError: - # Sphinx AutoDoc has a mock issue with gtk.gdk masks. + # Sphinx AutoDoc has a mock issue with Gdk masks. pass |