summaryrefslogtreecommitdiffstats
path: root/python/examples/gconf-proxy-service.py
diff options
context:
space:
mode:
authorRobert McQueen <robot101@debian.org>2005-10-29 22:04:01 +0000
committerRobert McQueen <robot101@debian.org>2005-10-29 22:04:01 +0000
commit6fbd1c7ff5b1023f543a304db4f76fc6eeb4dbd5 (patch)
tree0ca5b3936376fe84c9df1153019f28408254310d /python/examples/gconf-proxy-service.py
parent20bcbaf21f4e94c48d6348a4ba8013d20f9e4d36 (diff)
2005-10-29 Robert McQueen <robot101@debian.org>
* python/dbus_bindings.pyx: Tweak 'raise AssertionError' to assert(). Add checking for the end of struct character when marshalling a struct in MessageIter.append_strict. * python/examples/example-service.py, python/examples/gconf-proxy-service.py, python/examples/gconf-proxy-service2.py: Update to use gobject mainloop directly rather than appearing to depend on gtk. * python/test/test-client.py, python/test/test-server.py: Remove obsolete and broken test scripts for old bindings. We have up to date and working tests in test/python/.
Diffstat (limited to 'python/examples/gconf-proxy-service.py')
-rw-r--r--python/examples/gconf-proxy-service.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/examples/gconf-proxy-service.py b/python/examples/gconf-proxy-service.py
index b9bdef14..a899cf21 100644
--- a/python/examples/gconf-proxy-service.py
+++ b/python/examples/gconf-proxy-service.py
@@ -2,7 +2,7 @@
#FIXME: Doesn't work with the new bindings
import dbus
-import gtk
+import gobject
import gconf
class GConfService(dbus.Service):
@@ -39,4 +39,5 @@ gconf_service = GConfService()
print ("GConf Proxy service started.")
print ("Run 'gconf-proxy-client.py' to fetch a GConf key through the proxy...")
-gtk.main()
+mainloop = gobject.MainLoop()
+mainloop.run()