Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2012-10-14 16:36:08 (GMT)
committer Simon Schampijer <simon@laptop.org>2012-10-16 18:45:16 (GMT)
commit3802c5542b757859e961d90f28c787e7642997d4 (patch)
tree61fae5992e0b3b736fbe842f563818c15bb4e3f7
parent6764882a44c4d2f0dec414f48ea3588e4de69f7b (diff)
Request AP properties with dbus ByteArrays (#4031)
As we deal with the ssid property as a string, we need to explicitly request byte array data as a ByteArray as is done in other places. This wasn't a problem before the upgrade to dbus-1.6.8; its likely that the byte_arrays setting was questionably inherited from other places where we subscribe to this signal. But now it seems like each call site is independent, which makes sense, and each one must request byte_arrays if that is the format it wants to work with. Signed-off-by: Daniel Drake <dsd@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
-rw-r--r--extensions/deviceicon/network.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/deviceicon/network.py b/extensions/deviceicon/network.py
index 79bc764..f014418 100644
--- a/extensions/deviceicon/network.py
+++ b/extensions/deviceicon/network.py
@@ -457,7 +457,8 @@ class WirelessDeviceView(ToolButton):
self._bus.add_signal_receiver(self.__ap_properties_changed_cb,
signal_name='PropertiesChanged',
path=self._active_ap_op,
- dbus_interface=network.NM_ACCESSPOINT_IFACE)
+ dbus_interface=network.NM_ACCESSPOINT_IFACE,
+ byte_arrays=True)
def __get_active_ap_error_cb(self, err):
logging.error('Error getting the active access point: %s', err)