Bug 621213 – GDBusProxy and well-known names
authorDavid Zeuthen <davidz@redhat.com>
Fri, 11 Jun 2010 19:45:18 +0000 (15:45 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Fri, 11 Jun 2010 22:21:27 +0000 (18:21 -0400)
commit32f2e9a85beedeea36ac7623f68f6eb878465d44
treedd04d58235941e6670f7ba45e6f30c1476325ed9
parente0f8d30dea3d9509867f29289835ea3d58b32730
Bug 621213 – GDBusProxy and well-known names

Allow constructing a GDBusProxy for well-known names as discussed here
http://mail.gnome.org/archives/gtk-devel-list/2009-October/msg00075.html
including test cases.

Make it possible to create a GDBusProxy for a GBusType instead of a
GDBusConnection. This requires G_BUS_TYPE_NONE so add that too.

Nuke g_bus_watch_proxy() since one can now more or less use GDBusProxy
for this.

Port gdbus-example-watch-proxy to this new API and include this
example in the GDBusProxy doc page.

Also nuke the GType parameter from the GDBusProxy constructors as
requested here: https://bugzilla.gnome.org/show_bug.cgi?id=621229

Also update the porting guide and other API docs for this change.

Also fix a bug in the signal dispatching code so each subscriber only
get notified once, not N times, for the same signal. Also add a test
case for this.

https://bugzilla.gnome.org/show_bug.cgi?id=621213

Signed-off-by: David Zeuthen <davidz@redhat.com>
22 files changed:
docs/reference/gio/gio-docs.xml
docs/reference/gio/gio-sections.txt
docs/reference/gio/migrating-gdbus.xml
gio/Makefile.am
gio/gdbusconnection.c
gio/gdbusproxy.c
gio/gdbusproxy.h
gio/gdbusproxywatching.c [deleted file]
gio/gdbusproxywatching.h [deleted file]
gio/gio.h
gio/gio.symbols
gio/gioenums.h
gio/tests/Makefile.am
gio/tests/gdbus-connection.c
gio/tests/gdbus-example-proxy-subclass.c
gio/tests/gdbus-example-watch-proxy.c
gio/tests/gdbus-export.c
gio/tests/gdbus-introspection.c
gio/tests/gdbus-peer.c
gio/tests/gdbus-proxy-well-known-name.c [new file with mode: 0644]
gio/tests/gdbus-proxy.c
gio/tests/gdbus-threading.c