From 26c28445a5f89fe883aa6becae3e87d71ed3f589 Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Wed, 24 Oct 2018 18:13:15 +0100 Subject: [PATCH] [GTK3] Fix showing piecesbar --- deluge/ui/gtk3/piecesbar.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deluge/ui/gtk3/piecesbar.py b/deluge/ui/gtk3/piecesbar.py index d7330dbd1..ba03e5520 100644 --- a/deluge/ui/gtk3/piecesbar.py +++ b/deluge/ui/gtk3/piecesbar.py @@ -17,7 +17,8 @@ gi.require_version('PangoCairo', '1.0') # NOQA: E402 gi.require_version('cairo', '1.0') # NOQA: E402 # isort:imports-thirdparty -from gi.repository import PangoCairo, cairo +import cairo # Backward compat cairo <= 1.15 +from gi.repository import PangoCairo from gi.repository.Gtk import DrawingArea, ProgressBar, StateFlags from gi.repository.Pango import SCALE, Weight