[gnome-documents] documents: Reduce the number of thumbnailing invariants
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] documents: Reduce the number of thumbnailing invariants
- Date: Wed, 5 Feb 2014 16:43:14 +0000 (UTC)
commit b6f31deab64806f4046e918a81d665cdd6cda39a
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Feb 5 14:40:51 2014 +0100
documents: Reduce the number of thumbnailing invariants
https://bugzilla.gnome.org/show_bug.cgi?id=720533
src/documents.js | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/documents.js b/src/documents.js
index 212e90e..d22407a 100644
--- a/src/documents.js
+++ b/src/documents.js
@@ -242,7 +242,6 @@ const DocCommon = new Lang.Class({
this.collection = false;
this._collectionIconWatcher = null;
- this.thumbnailed = false;
this._thumbPath = null;
this.populateFromCursor(cursor);
@@ -397,7 +396,6 @@ const DocCommon = new Lang.Class({
if (this._thumbPath) {
this._refreshThumbPath();
} else {
- this.thumbnailed = false;
this.createThumbnail(Lang.bind(this, this._onCreateThumbnail));
}
},
@@ -445,7 +443,6 @@ const DocCommon = new Lang.Class({
function(object, res) {
try {
let pixbuf = GdkPixbuf.Pixbuf.new_from_stream_finish(res);
- this.thumbnailed = true;
this._setOrigPixbuf(pixbuf);
} catch (e) {
log('Unable to create pixbuf from ' + thumbFile.get_uri() + ': ' +
e.toString());
@@ -525,7 +522,7 @@ const DocCommon = new Lang.Class({
let thumbnailedPixbuf = null;
- if (this.thumbnailed) {
+ if (this._thumbPath) {
let [ slice, border ] = Utils.getThumbnailFrameBorder();
thumbnailedPixbuf = Gd.embed_image_in_frame(emblemedPixbuf,
'resource:///org/gnome/documents/thumbnail-frame.png',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]