Rework config file reading
authorMatthias Clasen <mclasen@redhat.com>
Sat, 15 Sep 2012 00:09:38 +0000 (20:09 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 15 Sep 2012 00:10:41 +0000 (20:10 -0400)
commit164c6eb4dc819eb0833d6851f9e16d4994e84e97
treee1ae6c3226087a172fa1baf99e21dc594c2ad7eb
parentabd17535c26f9675a162dc26412cea0384cdeebd
Rework config file reading

The code was loading and parsing the system config file
every single time, and has not correctly handling mixed
requests for user and system config entries.

This commit reworks the code so that the configuration is
loaded only once, in threadsafe fashion.
pango_config_key_get_system is no longer using the same
hash table, but reloads its data every time - this is
not a really problem, since this function is only used
in pango-querymodules.
pango/pango-utils.c