Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu 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)
commit174120ddd20631210f555a3813280887ddafaf9e (patch)
tree9b57f52d35cc3eda709ec99ee6c3650d51da594e
parent4e3db4878129c605e2f21c584c2e69b13fb1619a (diff)
Fix checking for new Connection objects in the bus
-rw-r--r--src/jarabe/model/buddy.py4
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)