diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-09-22 09:43:44 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-09-22 09:43:44 (GMT) |
commit | ccb33fe2548aaf9aa8ecfbe666372e93f82f9114 (patch) | |
tree | 3a6fea7b38f1eb473f44f9b04d3eecbbcebd7f7f | |
parent | 2d8c9a3310714a5281a2c6250bc341103752e28f (diff) |
Missing casts
-rw-r--r-- | sugar/canvas/IconItem.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sugar/canvas/IconItem.py b/sugar/canvas/IconItem.py index 9f81772..c40fb44 100644 --- a/sugar/canvas/IconItem.py +++ b/sugar/canvas/IconItem.py @@ -38,7 +38,7 @@ class _IconCache: return rsvg.Handle(data=data) def get_handle(self, name, color, size): - info = self._theme.lookup_icon(name, size, 0) + info = self._theme.lookup_icon(name, int(size), 0) if color: key = (info.get_filename(), color.to_string()) @@ -123,8 +123,9 @@ class IconView(goocanvas.ItemViewSimple, goocanvas.ItemView): self._buffer = None if self._buffer == None: - surface = cr.get_target().create_similar( - cairo.CONTENT_COLOR_ALPHA, size, size) + target = cr.get_target() + surface = target.create_similar(cairo.CONTENT_COLOR_ALPHA, + int(size) + 1, int(size) + 1) dimensions = handle.get_dimension_data() scale = size / dimensions[0] |