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.
This commit is contained in:
Marina Zhurakhinskaya 2009-05-26 17:26:00 -04:00
parent 36775c9a58
commit 386d6a5eb2

View File

@ -128,7 +128,7 @@ DocDisplayItem.prototype = {
if (this._docInfo.get_mime_type() == null || this._docInfo.get_mime_type().indexOf("image/") != 0) if (this._docInfo.get_mime_type() == null || this._docInfo.get_mime_type().indexOf("image/") != 0)
return null; 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);
} }
}; };