[Sugar-devel] [PATCH sugar-toolkit-gtk3 2/2] Fix the badge position at the icon attach point - SL #3835
Simon Schampijer
simon at schampijer.de
Thu Sep 6 12:18:29 EDT 2012
On 09/06/2012 06:05 PM, Manuel Quiñones wrote:
> The convert script pygi-convert.sh commented out the call to
> info.get_attach_points() in commit 820efa56
>
> Signed-off-by: Manuel Quiñones <manuq at laptop.org>
> ---
> src/sugar3/graphics/icon.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/sugar3/graphics/icon.py b/src/sugar3/graphics/icon.py
> index 24c1610..b6806cd 100644
> --- a/src/sugar3/graphics/icon.py
> +++ b/src/sugar3/graphics/icon.py
> @@ -121,7 +121,7 @@ class _IconBuffer(object):
> return self._loader.load(file_name, entities, self.cache)
>
> def _get_attach_points(self, info, size_request):
> - return 0,0;has_attach_points_, attach_points = info.get_attach_points()
> + has_attach_points_, attach_points = info.get_attach_points()
>
> if attach_points:
> attach_x = float(attach_points[0].x) / size_request
>
Awesome work Manuel, pushed with your testcase and closed the ticket.
Simon
More information about the Sugar-devel
mailing list