GNOME Bugzilla – Bug 648959
Allow setting :connection property GDBusObjectManagerServer
Last modified: 2011-05-04 07:49:15 UTC
As per bug 647577 comment 11. We should also allow it being NULL. And the docs should mention why you would want to do this: to prime the server before it is exported on :connection - otherwise a lot of useless signals are generated at startup.
Also when you want your object to vanish from D-Bus deterministically, when it's "conceptually already gone" but something asynchronous might still be holding a ref to it. (In Telepathy we used to rely on dbus-glib's implicit removal from D-Bus as a side-effect of the last unref, but that led to some really odd bugs.)
OK, fixed with this commit http://git.gnome.org/browse/glib/commit/?id=1ab29b6c4a2ddf5a60b4cc353422d605197b7696