Adapt to devices icon name changes.

This commit is contained in:
Marco Pesenti Gritti 2007-08-16 12:58:40 +02:00
parent e95e786432
commit a79a3198c5
4 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,7 @@ from sugar.graphics import canvasicon
from sugar.graphics import style from sugar.graphics import style
from sugar.graphics.palette import Palette from sugar.graphics.palette import Palette
_ICON_NAME = 'device-battery' _ICON_NAME = 'battery'
_STATUS_CHARGING = 0 _STATUS_CHARGING = 0
_STATUS_DISCHARGING = 1 _STATUS_DISCHARGING = 1

View File

@ -22,7 +22,7 @@ from model.devices import device
class DeviceView(canvasicon.CanvasIcon): class DeviceView(canvasicon.CanvasIcon):
def __init__(self, model): def __init__(self, model):
canvasicon.CanvasIcon.__init__(self, size=style.MEDIUM_ICON_SIZE, canvasicon.CanvasIcon.__init__(self, size=style.MEDIUM_ICON_SIZE,
icon_name='theme:device-network-mesh') icon_name='theme:network-mesh')
self._model = model self._model = model
model.connect('notify::state', self._state_changed_cb) model.connect('notify::state', self._state_changed_cb)

View File

@ -22,7 +22,7 @@ from model.devices.network import wireless
from sugar.graphics.canvasicon import CanvasIcon from sugar.graphics.canvasicon import CanvasIcon
from model.devices import device from model.devices import device
_ICON_NAME = 'device-network-wireless' _ICON_NAME = 'network-wireless'
class DeviceView(CanvasIcon): class DeviceView(CanvasIcon):
def __init__(self, model): def __init__(self, model):

View File

@ -36,7 +36,7 @@ from view.BuddyIcon import BuddyIcon
from view.pulsingicon import PulsingIcon from view.pulsingicon import PulsingIcon
from view.home.snowflakelayout import SnowflakeLayout from view.home.snowflakelayout import SnowflakeLayout
_ICON_NAME = 'device-network-wireless' _ICON_NAME = 'network-wireless'
class AccessPointView(PulsingIcon): class AccessPointView(PulsingIcon):
def __init__(self, model): def __init__(self, model):
@ -116,7 +116,7 @@ class AccessPointView(PulsingIcon):
] ]
_MESH_ICON_NAME = 'theme:device-network-mesh' _MESH_ICON_NAME = 'theme:network-mesh'
class MeshDeviceView(PulsingIcon): class MeshDeviceView(PulsingIcon):
def __init__(self, nm_device): def __init__(self, nm_device):