[libchamplain/libchamplain-0-4] Load tiles async from hard drive
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libchamplain/libchamplain-0-4] Load tiles async from hard drive
- Date: Fri, 29 Jan 2010 02:51:52 +0000 (UTC)
commit 3ecfa358b2ddc7b81ce486955f8585857d918420
Author: Pierre-Luc Beaudoin <pierre-luc pierlux com>
Date: Sat Jan 16 23:14:14 2010 -0500
Load tiles async from hard drive
champlain/champlain-cache.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/champlain/champlain-cache.c b/champlain/champlain-cache.c
index 0d71e29..fc4bf4c 100644
--- a/champlain/champlain-cache.c
+++ b/champlain/champlain-cache.c
@@ -417,7 +417,9 @@ champlain_cache_fill_tile (ChamplainCache *self,
}
/* Load the cached version */
- actor = clutter_texture_new_from_file (filename, &error);
+ actor = clutter_texture_new ();
+ clutter_texture_set_load_async (CLUTTER_TEXTURE (actor), TRUE);
+ clutter_texture_set_from_file (CLUTTER_TEXTURE (actor), filename, &error);
if (error == NULL)
{
champlain_tile_set_content (tile, actor, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]