diff options
author | Tomeu Vizoso <tomeu@sugarlabs.org> | 2009-03-18 16:12:06 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@sugarlabs.org> | 2009-03-18 16:12:06 (GMT) |
commit | dd08d1008392d4e9b986d49957ed91c8cd63f34e (patch) | |
tree | 9696f72a5ebac7560f169ee68dcf9da62626befe /src/jarabe/desktop/favoritesview.py | |
parent | d3a08397358a73ce41db72686ed5cb2c27f0f11a (diff) |
Draw the rounding box inside the icon bounds (benzea) #567
Diffstat (limited to 'src/jarabe/desktop/favoritesview.py')
-rw-r--r-- | src/jarabe/desktop/favoritesview.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jarabe/desktop/favoritesview.py b/src/jarabe/desktop/favoritesview.py index 676a719..8b4c993 100644 --- a/src/jarabe/desktop/favoritesview.py +++ b/src/jarabe/desktop/favoritesview.py @@ -488,15 +488,15 @@ class ActivityIcon(CanvasIcon): width, height = self.get_allocation() - x = ActivityIcon._BORDER_WIDTH / 2 - y = ActivityIcon._BORDER_WIDTH / 2 + x = ActivityIcon._BORDER_WIDTH / 2.0 + y = ActivityIcon._BORDER_WIDTH / 2.0 width -= ActivityIcon._BORDER_WIDTH height -= ActivityIcon._BORDER_WIDTH - radius = width / 10 + radius = width / 10.0 cr.move_to(x + radius, y) cr.arc(x + width - radius, y + radius, radius, math.pi * 1.5, - math.pi * 2) + math.pi * 2.0) cr.arc(x + width - radius, x + height - radius, radius, 0, math.pi * 0.5) cr.arc(x + radius, y + height - radius, radius, math.pi * 0.5, math.pi) |