Disable caching when not in atspi_event_main
authorMike Gorse <mgorse@novell.com>
Mon, 23 May 2011 22:46:46 +0000 (17:46 -0500)
committerMike Gorse <mgorse@novell.com>
Mon, 23 May 2011 23:32:12 +0000 (18:32 -0500)
commit4cfcc3967bc4cc7d3ea9636ed9d733f0d44e6848
treed9021bdca265eea0a03a35af6f57c8ab56182e76
parent6b2c4e89c73e6f7f0bbed667e706b47cf1da03af
Disable caching when not in atspi_event_main

If we are not in a GLib main loop, then we will not see signals to update
the cache, so cached data will become invalid.  Assume that, if
atspi-event_main has not been called, then we are, for instance, in a simple
pyatspi script without a main loop, so we should disable caching.
atspi/atspi-accessible.c
atspi/atspi-misc-private.h
atspi/atspi-misc.c