implement org.laptop.Sugar.Presence.GetPreferredConnection
This commit is contained in:
parent
7b40f9bf60
commit
6b6b72f9c9
@ -295,6 +295,11 @@ class PresenceService(dbus.service.Object):
|
|||||||
activity = self._share_activity(actid, atype, name, properties)
|
activity = self._share_activity(actid, atype, name, properties)
|
||||||
return activity.object_path()
|
return activity.object_path()
|
||||||
|
|
||||||
|
@dbus.service.method(_PRESENCE_INTERFACE, out_signature="so")
|
||||||
|
def GetPreferredConnection(self):
|
||||||
|
conn = self._server_plugin.get_connection()
|
||||||
|
return str(conn.service_name), conn.object_path
|
||||||
|
|
||||||
def cleanup(self):
|
def cleanup(self):
|
||||||
for tp in self._handles_buddies:
|
for tp in self._handles_buddies:
|
||||||
tp.cleanup()
|
tp.cleanup()
|
||||||
|
@ -128,7 +128,7 @@ class ServerPlugin(gobject.GObject):
|
|||||||
self._set_self_alias()
|
self._set_self_alias()
|
||||||
|
|
||||||
if properties.has_key("color"):
|
if properties.has_key("color"):
|
||||||
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):
|
||||||
logging.debug("Owner icon changed to size %d" % len(str(icon)))
|
logging.debug("Owner icon changed to size %d" % len(str(icon)))
|
||||||
|
Loading…
Reference in New Issue
Block a user