[Sugar-devel] [PATCH sugar-toolkit-gtk3 2/2] Fix the badge position at the icon attach point - SL #3835

Manuel Quiñones manuq at laptop.org
Thu Sep 6 12:05:56 EDT 2012


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
-- 
1.7.11.4



More information about the Sugar-devel mailing list