summaryrefslogtreecommitdiffstats
path: root/deluge/plugins/Stats/deluge_stats/gtkui.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-12-10 11:13:08 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-12-10 11:13:08 +0000
commit9a5a4b27cb3c911f0c8ea622f183038b409de792 (patch)
treef16fe350773078608d57119ebe950c5d2793db46 /deluge/plugins/Stats/deluge_stats/gtkui.py
parentReleasing debian version 2.1.2~dev0+20230918-1. (diff)
downloaddeluge-9a5a4b27cb3c911f0c8ea622f183038b409de792.tar.xz
deluge-9a5a4b27cb3c911f0c8ea622f183038b409de792.zip
Merging upstream version 2.1.2~dev0+20231127.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'deluge/plugins/Stats/deluge_stats/gtkui.py')
-rw-r--r--deluge/plugins/Stats/deluge_stats/gtkui.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/deluge/plugins/Stats/deluge_stats/gtkui.py b/deluge/plugins/Stats/deluge_stats/gtkui.py
index c088060..39c1d4c 100644
--- a/deluge/plugins/Stats/deluge_stats/gtkui.py
+++ b/deluge/plugins/Stats/deluge_stats/gtkui.py
@@ -9,10 +9,13 @@
# This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with
# the additional special exception to link portions of this program with the OpenSSL library.
# See LICENSE for more details.
-#
import logging
+import gi # isort:skip (Required before Gtk import).
+
+gi.require_version('Gtk', '3.0')
+
from gi.repository import Gtk
from gi.repository.Gdk import RGBA