diff options
author | Dan Williams <dcbw@redhat.com> | 2007-04-13 17:12:04 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2007-04-13 17:12:04 (GMT) |
commit | 773ae4965e20f25e4d9454f7e6299afa2e2cab6a (patch) | |
tree | 73a7ae574c1be7d0fb48f2db34397aecfa72560e /services | |
parent | 31000f6c3e73681163d39c3de0b0ff48437aabd1 (diff) | |
parent | 6b6b72f9c9711a22e99bc1d79a2a0973abba7653 (diff) |
Merge branch 'master' of git+ssh://dev.laptop.org/git/sugar
Diffstat (limited to 'services')
-rw-r--r-- | services/presence/presenceservice.py | 5 | ||||
-rw-r--r-- | services/presence/server_plugin.py | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/services/presence/presenceservice.py b/services/presence/presenceservice.py index b770ffd..426780f 100644 --- a/services/presence/presenceservice.py +++ b/services/presence/presenceservice.py @@ -302,6 +302,11 @@ class PresenceService(dbus.service.Object): def ShareActivity(self, actid, atype, name, properties, async_cb, async_err_cb): self._share_activity(actid, atype, name, properties, (async_cb, async_err_cb)) + @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): for tp in self._handles_buddies: tp.cleanup() diff --git a/services/presence/server_plugin.py b/services/presence/server_plugin.py index ea33e70..f2a379d 100644 --- a/services/presence/server_plugin.py +++ b/services/presence/server_plugin.py @@ -134,7 +134,7 @@ class ServerPlugin(gobject.GObject): self._set_self_alias() if properties.has_key("color"): - self._set_self._olpc_properties() + self._set_self_olpc_properties() def _owner_icon_changed_cb(self, owner, icon): logging.debug("Owner icon changed to size %d" % len(str(icon))) |