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:
parent
36775c9a58
commit
386d6a5eb2
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user