EDataBook: Watch the system bus for locale notifications
authorTristan Van Berkom <tristanvb@openismus.com>
Thu, 23 May 2013 06:24:09 +0000 (15:24 +0900)
committerTristan Van Berkom <tristanvb@openismus.com>
Mon, 27 May 2013 13:34:28 +0000 (22:34 +0900)
commit2d287ca7d2ab45af28deb1847b9fdcad0626ec71
tree7814cd4ed843131a9e558b9e1f9ba8721e69f74b
parentf44aa895cdecd97651dfa2a42717a012ed9607a5
EDataBook: Watch the system bus for locale notifications

When org.freedesktop.locale1 is available, listen to changes in
the LC_COLLATE locale and configure backends with locale changes
using e_book_backend_set_locale(), notify property changes via
the locale property on the addressbook D-Bus API.

Also, load the backend's initially set locale as the locale property
value until the org.freedesktop.locale1 D-Bus interface notifies
us of a locale change on the system bus.
addressbook/libedata-book/e-data-book.c