From 174120ddd20631210f555a3813280887ddafaf9e Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Tue, 31 Aug 2010 13:03:27 +0000 Subject: Fix checking for new Connection objects in the bus --- 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) -- cgit v0.9.1