[gnome-shell] Fix showing image previews
- From: Marina Zhurakhinskaya <marinaz src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-shell] Fix showing image previews
- Date: Tue, 26 May 2009 17:26:28 -0400 (EDT)
commit 386d6a5eb27fbb9d544ecb3bf7edc33b6ebae884
Author: Marina Zhurakhinskaya <marinaz redhat com>
Date: Tue May 26 17:26:00 2009 -0400
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 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/js/ui/docDisplay.js b/js/ui/docDisplay.js
index cf894de..df02008 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);
}
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]