From d06cb74d2594c60ded1f7be052d0d8a8262eeaf5 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Mon, 11 Sep 2006 19:25:16 +0200 Subject: [PATCH] Cast size to int --- configure.ac | 2 +- sugar/canvas/IconItem.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 072ebd85..25710ab4 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT([Sugar],[0.27],[],[sugar]) +AC_INIT([Sugar],[0.28],[],[sugar]) AC_PREREQ([2.59]) diff --git a/sugar/canvas/IconItem.py b/sugar/canvas/IconItem.py index b9e1fb3a..e0c3b839 100644 --- a/sugar/canvas/IconItem.py +++ b/sugar/canvas/IconItem.py @@ -124,7 +124,7 @@ class IconView(goocanvas.ItemViewSimple, goocanvas.ItemView): self._buffer = None if self._buffer == None: - size = _ICON_SIZE * scale + size = int(_ICON_SIZE * scale) surface = cr.get_target().create_similar( cairo.CONTENT_COLOR_ALPHA, size, size)