Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorDan Williams <dcbw@localhost.localdomain>2007-01-14 23:22:43 (GMT)
committer Dan Williams <dcbw@localhost.localdomain>2007-01-14 23:22:43 (GMT)
commit2d6e577a169ff7cade4e3c1819d612dac79e0623 (patch)
treecdb2dfce776abf35a94d2a298248772b3e9209e2 /shell
parent8ca1e36b7fac790f9a5eddb19550fbbc50075dff (diff)
Enable caching of rendered icon surfaces during launch feedback
Diffstat (limited to 'shell')
-rw-r--r--shell/view/home/activitiesdonut.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/shell/view/home/activitiesdonut.py b/shell/view/home/activitiesdonut.py
index 82f283b..2359a32 100644
--- a/shell/view/home/activitiesdonut.py
+++ b/shell/view/home/activitiesdonut.py
@@ -18,7 +18,6 @@ import hippo
import math
import gobject
import colorsys
-import logging
from sugar.graphics.canvasicon import CanvasIcon
from sugar.graphics import style
@@ -50,15 +49,14 @@ class ActivityIcon(CanvasIcon):
def __init__(self, activity):
icon_name = activity.get_icon_name()
self._orig_color = profile.get_color()
-
self._icon_colors = self._compute_icon_colors()
-
+
self._direction = 0
self._level_max = len(self._icon_colors) - 1
self._level = self._level_max
color = self._icon_colors[self._level]
- CanvasIcon.__init__(self, icon_name=icon_name, color=color)
+ CanvasIcon.__init__(self, icon_name=icon_name, color=color, cache=True)
style.apply_stylesheet(self, 'ring.ActivityIcon')
self._activity = activity
@@ -72,6 +70,8 @@ class ActivityIcon(CanvasIcon):
if self._pulse_id > 0:
gobject.source_remove(self._pulse_id)
self._pulse_id = 0
+ # dispose of all rendered icons from launch feedback
+ self._clear_buffers()
def _compute_icon_colors(self):
_LEVEL_MAX = 1.6