Missing casts

This commit is contained in:
Marco Pesenti Gritti 2006-09-22 11:43:44 +02:00
parent 2d8c9a3310
commit ccb33fe254

View File

@ -38,7 +38,7 @@ class _IconCache:
return rsvg.Handle(data=data) return rsvg.Handle(data=data)
def get_handle(self, name, color, size): 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: if color:
key = (info.get_filename(), color.to_string()) key = (info.get_filename(), color.to_string())
@ -123,8 +123,9 @@ class IconView(goocanvas.ItemViewSimple, goocanvas.ItemView):
self._buffer = None self._buffer = None
if self._buffer == None: if self._buffer == None:
surface = cr.get_target().create_similar( target = cr.get_target()
cairo.CONTENT_COLOR_ALPHA, size, size) surface = target.create_similar(cairo.CONTENT_COLOR_ALPHA,
int(size) + 1, int(size) + 1)
dimensions = handle.get_dimension_data() dimensions = handle.get_dimension_data()
scale = size / dimensions[0] scale = size / dimensions[0]