From 41e5e56bb9381fcfe68d0421ea8273192d64c474 Mon Sep 17 00:00:00 2001 From: Trent Lloyd Date: Wed, 27 Jul 2005 22:22:21 +0000 Subject: [PATCH] * Fix dbus.glib import in dbus-test.py for dbus 0.35 * Use glib mainloop directly instead of gtk so a DISPLAY is not needed. git-svn-id: file:///home/lennart/svn/public/avahi/trunk@176 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-daemon/dbus-test.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/avahi-daemon/dbus-test.py b/avahi-daemon/dbus-test.py index bdfae0c..cd708c0 100755 --- a/avahi-daemon/dbus-test.py +++ b/avahi-daemon/dbus-test.py @@ -1,8 +1,9 @@ #!/usr/bin/python2.4 import dbus -import dbus.glib -import gtk +import gobject +try: import dbus.glib +except ImportError, e: pass from time import sleep @@ -38,7 +39,7 @@ g.AddAddress(0, 0, "foo.local", "47.11.8.15") g.Commit() try: - gtk.main() + gobject.MainLoop().run() except KeyboardInterrupt, k: pass -- 2.39.5