EBookClient: Use g_bus_watch_name_on_connection().
authorMatthew Barnes <mbarnes@redhat.com>
Sat, 9 Feb 2013 15:37:31 +0000 (10:37 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Sat, 9 Feb 2013 21:21:15 +0000 (16:21 -0500)
commit8726e44eac95b7966061d5bada845160a8ecc464
treeb600995585367d0b863cca9a0c8dac7a9ed7ceca
parentdbea39f2f0285271eb85ee7117e506bf0200cdfc
EBookClient: Use g_bus_watch_name_on_connection().

g_bus_watch_name_on_connection() handles "NameOwnerChanged" signals
as well as "closed" signals from the GDBusConnection.  In the event
the bus name vanishes, we schedule an idle callback on the client's
GMainContext to emit a "backend-died" signal.

Also while we're at it, call the close() method asynchronously from
dispose() so we don't block.
addressbook/libebook/e-book-client.c