diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2010-08-31 13:03:27 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.co.uk> | 2010-08-31 13:03:27 (GMT) |
commit | 174120ddd20631210f555a3813280887ddafaf9e (patch) | |
tree | 9b57f52d35cc3eda709ec99ee6c3650d51da594e | |
parent | 4e3db4878129c605e2f21c584c2e69b13fb1619a (diff) |
Fix checking for new Connection objects in the bus
-rw-r--r-- | src/jarabe/model/buddy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jarabe/model/buddy.py b/src/jarabe/model/buddy.py index 6cf7be9..b905e7e 100644 --- a/src/jarabe/model/buddy.py +++ b/src/jarabe/model/buddy.py @@ -129,7 +129,7 @@ class OwnerBuddyModel(BaseBuddyModel): bus_object = bus.get_object(dbus.BUS_DAEMON_NAME, dbus.BUS_DAEMON_PATH) for service in bus_object.ListNames( dbus_interface=dbus.BUS_DAEMON_IFACE): - if service.startswith('org.freedesktop.Telepathy.Connection.'): + if service.startswith(CONNECTION + '.'): path = '/%s' % service.replace('.', '/') Connection(service, path, bus, ready_handler=self.__connection_ready_cb) @@ -138,7 +138,7 @@ class OwnerBuddyModel(BaseBuddyModel): self._sync_properties_on_connection(connection) def __name_owner_changed_cb(self, name, old, new): - if name.startswith(CONNECTION) and not old and new: + if name.startswith(CONNECTION + '.') and not old and new: path = '/' + name.replace('.', '/') Connection(name, path, ready_handler=self.__connection_ready_cb) |