[async-loading] Update asynchronous image loading
authorEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 12 Jan 2009 16:54:30 +0000 (16:54 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 12 Jan 2009 17:00:06 +0000 (17:00 +0000)
commit168d558bcf7dcbd707364004fe968093b5bb5546
tree5c80956b4b27c35b8c576f9e8557267771b13faf
parent1c114be31a50410c1b2d0621848250102b6dd166
[async-loading] Update asynchronous image loading

Provide a main loop-based fallback to the asynchronous loading in
case the GLib threading support hasn't been enabled. This also
allows us to clean up the asynchronous loading machinery and have
it behave consistently across different scenarios.

Emit the ::load-finished even if the asynchronous loading from
disk was not enabled.

Finally, block clutter_texture_set_from_file() until we have an
image width and height, so that querying the texture actor size
after set_from_file() will still yield the correct result even
when asynchronous loading is set.
clutter/clutter-texture.c