diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-08-28 19:25:04 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-08-28 19:25:04 (GMT) |
commit | 94d624e26c94a8a763f56f6916078bb860608731 (patch) | |
tree | 9788e39c7655b9d774f30f5357a72618f6f579c8 /shell | |
parent | 0dbb456a5aecffc2db52c1ce8b0ce3792b7893f0 (diff) |
Some more icon fixes.
Diffstat (limited to 'shell')
-rw-r--r-- | shell/view/devices/network/mesh.py | 8 | ||||
-rw-r--r-- | shell/view/home/MeshBox.py | 20 |
2 files changed, 14 insertions, 14 deletions
diff --git a/shell/view/devices/network/mesh.py b/shell/view/devices/network/mesh.py index 81c9914..0ce4e71 100644 --- a/shell/view/devices/network/mesh.py +++ b/shell/view/devices/network/mesh.py @@ -16,14 +16,14 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA from sugar import profile -from sugar.graphics import canvasicon +from sugar.graphics.icon import CanvasIcon from sugar.graphics import style from model.devices import device -class DeviceView(canvasicon.CanvasIcon): +class DeviceView(CanvasIcon): def __init__(self, model): - canvasicon.CanvasIcon.__init__(self, size=style.MEDIUM_ICON_SIZE, - icon_name='network-mesh') + CanvasIcon.__init__(self, size=style.MEDIUM_ICON_SIZE, + icon_name='network-mesh') self._model = model model.connect('notify::state', self._state_changed_cb) diff --git a/shell/view/home/MeshBox.py b/shell/view/home/MeshBox.py index e3f0c0f..4d6bde4 100644 --- a/shell/view/home/MeshBox.py +++ b/shell/view/home/MeshBox.py @@ -145,24 +145,24 @@ class MeshDeviceView(PulsingIcon): if state == nmclient.DEVICE_STATE_ACTIVATING: self.props.pulse_time = 0.75 self.props.colors = [ - [ style.Color(self._device_stroke), - style.Color(self._device_fill) ], - [ style.Color(self._device_stroke), - style.Color('#e2e2e2') ] + [ style.Color(self._device_stroke).get_svg(), + style.Color(self._device_fill).get_svg() ], + [ style.Color(self._device_stroke).get_svg(), + '#e2e2e2' ] ] elif state == nmclient.DEVICE_STATE_ACTIVATED: self.props.pulse_time = 1.5 self.props.colors = [ - [ style.Color(self._device_stroke), - style.Color(self._device_fill) ], - [ style.Color('#ffffff'), - style.Color(self._device_fill) ] + [ style.Color(self._device_stroke).get_svg(), + style.Color(self._device_fill).get_svg() ], + [ '#ffffff', + style.Color(self._device_fill).get_svg() ] ] elif state == nmclient.DEVICE_STATE_INACTIVE: self.props.pulse_time = 0.0 self.props.colors = [ - [ style.Color(self._device_stroke), - style.Color(self._device_fill) ] + [ style.Color(self._device_stroke).get_svg(), + style.Color(self._device_fill).get_svg() ] ] class ActivityView(hippo.CanvasBox): |