Fix setting owner OLPC properties
This commit is contained in:
parent
9a83c2b0fd
commit
9b978f014f
@ -178,6 +178,7 @@ class ServerPlugin(gobject.GObject):
|
|||||||
self._set_self_alias()
|
self._set_self_alias()
|
||||||
|
|
||||||
if properties.has_key("color") or properties.has_key("ip4-address"):
|
if properties.has_key("color") or properties.has_key("ip4-address"):
|
||||||
|
if self._conn_status == CONNECTION_STATUS_CONNECTED:
|
||||||
self._set_self_olpc_properties()
|
self._set_self_olpc_properties()
|
||||||
|
|
||||||
def _owner_icon_changed_cb(self, owner, icon):
|
def _owner_icon_changed_cb(self, owner, icon):
|
||||||
@ -469,8 +470,6 @@ class ServerPlugin(gobject.GObject):
|
|||||||
|
|
||||||
def _set_self_olpc_properties(self):
|
def _set_self_olpc_properties(self):
|
||||||
"""Set color and key on our Telepathy server identity"""
|
"""Set color and key on our Telepathy server identity"""
|
||||||
if self._conn_status != CONNECTION_STATUS_CONNECTED:
|
|
||||||
return
|
|
||||||
props = {}
|
props = {}
|
||||||
props['color'] = self._owner.props.color
|
props['color'] = self._owner.props.color
|
||||||
props['key'] = dbus.ByteArray(self._owner.props.key)
|
props['key'] = dbus.ByteArray(self._owner.props.key)
|
||||||
|
Loading…
Reference in New Issue
Block a user