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@redhat.com>2007-03-16 02:00:35 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-03-16 02:00:35 (GMT)
commitdee3953e3498f9508201aef9351eb72bbe72da73 (patch)
treed923c4bf570366c8ec702f69e0f5b766dae689ce /shell
parent0e1ec97663f87c2da2bb32288628b37c97c5666d (diff)
Add property for mode
Diffstat (limited to 'shell')
-rw-r--r--shell/model/accesspointmodel.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/model/accesspointmodel.py b/shell/model/accesspointmodel.py
index 6b4b3cb..b3f7063 100644
--- a/shell/model/accesspointmodel.py
+++ b/shell/model/accesspointmodel.py
@@ -38,7 +38,8 @@ class AccessPointModel(gobject.GObject):
'state' : (int, None, None, STATE_CONNECTING,
STATE_NOTCONNECTED, 0, gobject.PARAM_READABLE),
'capabilities' : (int, None, None, 0, sys.maxint, 0,
- gobject.PARAM_READABLE)
+ gobject.PARAM_READABLE),
+ 'mode' : (int, None, None, 0, 6, 0, gobject.PARAM_READABLE)
}
def __init__(self, nm_device, nm_network):
@@ -76,3 +77,5 @@ class AccessPointModel(gobject.GObject):
return _nm_state_to_state[nm_state]
elif pspec.name == 'capabilities':
return self._nm_network.get_caps()
+ elif pspec.name == 'mode':
+ return self._nm_network.get_mode()