GApplication: add notes about GDBus architecture
authorRyan Lortie <desrt@desrt.ca>
Mon, 31 Jan 2011 18:19:59 +0000 (13:19 -0500)
committerRyan Lortie <desrt@desrt.ca>
Mon, 31 Jan 2011 18:19:59 +0000 (13:19 -0500)
commit9f8798170dba82b8d46de02ab46105cf61b41f87
treedf7f821880f3f9dc78c717d814e5d24b0e2ba6ed
parent401a4233e492e3a2f83e86300b0004d524280e87
GApplication: add notes about GDBus architecture

Some people are trying to write code that calls g_application_register()
then checks to see if we became the primary name owner before exporting
objects.  This sort of approach worked with libdbus-1 because method
calls to the freshly-acquired name would not be dispatched until the
application returned to the mainloop.  With GDBus, however, dispatches
can occur at any time (including in the brief space between acquiring
the name and actually registering the object).

Add documentation to make it clear that you should not expect this to
work.
gio/gapplication.c