From 06dad045366576f6f8fb4cbbe63158b5250e2437 Mon Sep 17 00:00:00 2001
From: Aleksey Lim <alsroot@member.fsf.org>
Date: Sat, 29 Aug 2009 11:43:52 +0000
Subject: Do not cache TempFilePath in icon.py #1246
---
src/sugar/graphics/icon.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/sugar/graphics/icon.py b/src/sugar/graphics/icon.py
index d13e079..76c87d1 100644
a
|
b
|
class _IconBuffer(object): |
106 | 106 | else: |
107 | 107 | color = (self.background_color.red, self.background_color.green, |
108 | 108 | self.background_color.blue) |
109 | | return (self.icon_name, self.file_name, self.fill_color, |
| 109 | |
| 110 | # XXX we need typecast to str because of value can be TempFilePath |
| 111 | # and we don't need temporary file itself, see #1246 |
| 112 | file_name = str(self.file_name) |
| 113 | |
| 114 | return (self.icon_name, file_name, self.fill_color, |
110 | 115 | self.stroke_color, self.badge_name, self.width, self.height, |
111 | 116 | color, sensitive) |
112 | 117 | |