From 386d6a5eb27fbb9d544ecb3bf7edc33b6ebae884 Mon Sep 17 00:00:00 2001 From: Marina Zhurakhinskaya Date: Tue, 26 May 2009 17:26:00 -0400 Subject: [PATCH] Fix showing image previews Fix the call for getting the image previews by getting an instance of TextureCache first and then calling load_uri_sync() on it. --- js/ui/docDisplay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/docDisplay.js b/js/ui/docDisplay.js index cf894de16..df020081f 100644 --- a/js/ui/docDisplay.js +++ b/js/ui/docDisplay.js @@ -128,7 +128,7 @@ DocDisplayItem.prototype = { if (this._docInfo.get_mime_type() == null || this._docInfo.get_mime_type().indexOf("image/") != 0) return null; - return Shell.TextureCache.load_uri_sync(this._docInfo.get_uri(), availableWidth, availableHeight); + return Shell.TextureCache.get_default().load_uri_sync(this._docInfo.get_uri(), availableWidth, availableHeight); } };