Adapt to devices icon name changes.
This commit is contained in:
parent
e95e786432
commit
a79a3198c5
@ -21,7 +21,7 @@ from sugar.graphics import canvasicon
|
||||
from sugar.graphics import style
|
||||
from sugar.graphics.palette import Palette
|
||||
|
||||
_ICON_NAME = 'device-battery'
|
||||
_ICON_NAME = 'battery'
|
||||
|
||||
_STATUS_CHARGING = 0
|
||||
_STATUS_DISCHARGING = 1
|
||||
|
@ -22,7 +22,7 @@ from model.devices import device
|
||||
class DeviceView(canvasicon.CanvasIcon):
|
||||
def __init__(self, model):
|
||||
canvasicon.CanvasIcon.__init__(self, size=style.MEDIUM_ICON_SIZE,
|
||||
icon_name='theme:device-network-mesh')
|
||||
icon_name='theme:network-mesh')
|
||||
self._model = model
|
||||
|
||||
model.connect('notify::state', self._state_changed_cb)
|
||||
|
@ -22,7 +22,7 @@ from model.devices.network import wireless
|
||||
from sugar.graphics.canvasicon import CanvasIcon
|
||||
from model.devices import device
|
||||
|
||||
_ICON_NAME = 'device-network-wireless'
|
||||
_ICON_NAME = 'network-wireless'
|
||||
|
||||
class DeviceView(CanvasIcon):
|
||||
def __init__(self, model):
|
||||
|
@ -36,7 +36,7 @@ from view.BuddyIcon import BuddyIcon
|
||||
from view.pulsingicon import PulsingIcon
|
||||
from view.home.snowflakelayout import SnowflakeLayout
|
||||
|
||||
_ICON_NAME = 'device-network-wireless'
|
||||
_ICON_NAME = 'network-wireless'
|
||||
|
||||
class AccessPointView(PulsingIcon):
|
||||
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):
|
||||
def __init__(self, nm_device):
|
||||
|
Loading…
Reference in New Issue
Block a user