From bbb1b44a23cdad458b3eea61d617b804e21e02fa Mon Sep 17 00:00:00 2001 From: hugosenari Date: Mon, 20 Aug 2018 06:31:01 -0300 Subject: [PATCH] [GTK3] Fix piecesbar window attribute error Fixes the error: object has no attribute window --- deluge/ui/gtk3/piecesbar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/gtk3/piecesbar.py b/deluge/ui/gtk3/piecesbar.py index 3b31eecdf..42b474bcf 100644 --- a/deluge/ui/gtk3/piecesbar.py +++ b/deluge/ui/gtk3/piecesbar.py @@ -65,7 +65,7 @@ class PiecesBar(DrawingArea): # Handle the draw by drawing def do_draw(self, event): # Create cairo context - self.cr = self.window.cairo_create() + self.cr = self.props.window.cairo_create() self.cr.set_line_width(max(self.cr.device_to_user_distance(0.5, 0.5))) # Restrict Cairo to the exposed area; avoid extra work