Bug 678378 - ESourceRegistry causes deadlock in gnome-shell
authorMatthew Barnes <mbarnes@redhat.com>
Tue, 19 Jun 2012 12:40:46 +0000 (08:40 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Tue, 19 Jun 2012 12:53:00 +0000 (08:53 -0400)
commitbe7e0e49bba18e6f46d50394df0cd28f45e71379
tree600186992e54008f63a6b2e4954f4aaaf85f0c94
parent5ec01de3ba2a7daf6bf5f43351f7f6e7c00a28f4
Bug 678378 - ESourceRegistry causes deadlock in gnome-shell

Avoid scheduling idle callbacks while populating the registry for the
first time during initialization, and therefore having to iterate the
main context to force those idle callbacks to be dispatched.

Instead call source_registry_add_source() directly, just during the
initial population.  This will emit "source-added" signals from the
object manager thread, but no one will be listening.
libedataserver/e-source-registry.c