mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
[GTK3] Fix piecesbar window attribute error
Fixes the error: object has no attribute window
This commit is contained in:
parent
dfed17ac0d
commit
bbb1b44a23
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class PiecesBar(DrawingArea):
|
||||||
# Handle the draw by drawing
|
# Handle the draw by drawing
|
||||||
def do_draw(self, event):
|
def do_draw(self, event):
|
||||||
# Create cairo context
|
# 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)))
|
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
|
# Restrict Cairo to the exposed area; avoid extra work
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue