Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/view/home/MeshBox.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-09-08 10:10:35 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-09-08 10:10:35 (GMT)
commit34e9d30a9cd87e5b3fa665a0a4a9a954a5edb88e (patch)
treeda168c2d98ab8b6e6458ef896564b684b94df71e /shell/view/home/MeshBox.py
parent434483f54a3a5477077a96167f17ee6e19e2a0e7 (diff)
Improved icon caching logic
Diffstat (limited to 'shell/view/home/MeshBox.py')
-rw-r--r--shell/view/home/MeshBox.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/view/home/MeshBox.py b/shell/view/home/MeshBox.py
index 4824cce..2209bde 100644
--- a/shell/view/home/MeshBox.py
+++ b/shell/view/home/MeshBox.py
@@ -43,7 +43,7 @@ _ICON_NAME = 'network-wireless'
class AccessPointView(PulsingIcon):
def __init__(self, model):
- PulsingIcon.__init__(self, size=style.MEDIUM_ICON_SIZE)
+ PulsingIcon.__init__(self, size=style.MEDIUM_ICON_SIZE, cache=True)
self._model = model
self.connect('activated', self._activate_cb)
@@ -124,7 +124,7 @@ _MESH_ICON_NAME = 'network-mesh'
class MeshDeviceView(PulsingIcon):
def __init__(self, nm_device):
PulsingIcon.__init__(self, size=style.MEDIUM_ICON_SIZE,
- icon_name=_MESH_ICON_NAME)
+ icon_name=_MESH_ICON_NAME, cache=True)
self._nm_device = nm_device
self.set_tooltip(_("Mesh Network"))
@@ -180,7 +180,7 @@ class ActivityView(hippo.CanvasBox):
self._layout = SnowflakeLayout()
self.set_layout(self._layout)
- self._icon = CanvasIcon(file_name=model.get_icon_name(),
+ self._icon = CanvasIcon(file_name=model.get_icon_name(), cache=True,
xo_color=model.get_color(), box_width=80)
self._icon.connect('activated', self._clicked_cb)
self._icon.set_tooltip(self._model.activity.props.name)