From dd08d1008392d4e9b986d49957ed91c8cd63f34e Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Wed, 18 Mar 2009 16:12:06 +0000 Subject: Draw the rounding box inside the icon bounds (benzea) #567 --- (limited to 'src') 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) -- cgit v0.9.1