From 1e145d148a8defa60dc8fb0bd13e91c8725f14e9 Mon Sep 17 00:00:00 2001 From: Sebastien Estienne Date: Thu, 27 Oct 2005 22:23:01 +0000 Subject: * more work on avahi 0.6 git-svn-id: file:///home/lennart/svn/public/service-discovery-applet/trunk@73 3be567f1-68ff-0310-b24a-ad7cc433fd2f --- src/service-discovery-applet.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/service-discovery-applet.in b/src/service-discovery-applet.in index 0b86cab..11dbcf9 100755 --- a/src/service-discovery-applet.in +++ b/src/service-discovery-applet.in @@ -199,8 +199,12 @@ class ServiceDiscoveryApplet(gnomeapplet.Applet): try: if self.show_local_services == False: - if self.server.IsServiceLocal( interface, protocol, name, type, domain) == True: - return + if self.avahi_version != "avahi 0.6": + if self.server.IsServiceLocal( interface, protocol, name, type, domain) == True: + return + else: + if flags & avahi.AVAHI_LOOKUP_RESULT_IS_LOCAL: + return except dbus.dbus_bindings.DBusException: pass -- cgit