Menu model exporter: clean up the API
authorRyan Lortie <desrt@desrt.ca>
Fri, 2 Dec 2011 20:36:15 +0000 (15:36 -0500)
committerRyan Lortie <desrt@desrt.ca>
Thu, 8 Dec 2011 23:05:14 +0000 (18:05 -0500)
commitcfbc1b5a4b0bdf6de856fc054149e8f558970dff
treefe4c1c61ebdeff8972210b67a10d887a03b7fd36
parenta9f03596fa6da9999f3493d1deb8771f52efea3f
Menu model exporter: clean up the API

Give it the same treatment as the exporter for GActionGroup just got.

There is a wart here: the exporter attempt to re-enter GDBusConnection
when it is freed in order to cancel outstanding name watches.
GDBusConnection holds its own lock while calling the destroy notify, so
the attempt at reentrancy results in a deadlock.

We have a workaround to deal with that for now...
gio/gmenuexporter.c
gio/gmenuexporter.h
gio/tests/gmenumodel.c