Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/lib/sugar/graphics/icon.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sugar/graphics/icon.py')
-rw-r--r--lib/sugar/graphics/icon.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sugar/graphics/icon.py b/lib/sugar/graphics/icon.py
index f215081..61eab70 100644
--- a/lib/sugar/graphics/icon.py
+++ b/lib/sugar/graphics/icon.py
@@ -86,6 +86,7 @@ class _IconBuffer(object):
self.width = None
self.height = None
self.cache = False
+ self.scale = 1.0
def _get_cache_key(self):
return (self.icon_name, self.file_name, self.fill_color,
@@ -413,6 +414,7 @@ class CanvasIcon(hippo.CanvasBox, hippo.CanvasItem):
self._buffer.height = value
self.emit_request_changed()
elif pspec.name == 'scale':
+ logging.warning('CanvasIcon: the scale parameter is currently unsupported')
if self._buffer.scale != value:
self._buffer.scale = value
self.emit_request_changed()