[gnome-documents] docfactory: don't forget to update the icon sizes for google docs
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] docfactory: don't forget to update the icon sizes for google docs
- Date: Thu, 25 Aug 2011 17:18:43 +0000 (UTC)
commit dc85bb2caaee75d57fe1d1f1998ac31525845135
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Aug 25 13:18:03 2011 -0400
docfactory: don't forget to update the icon sizes for google docs
src/docFactory.js | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/docFactory.js b/src/docFactory.js
index 38bc5ba..87ccee0 100644
--- a/src/docFactory.js
+++ b/src/docFactory.js
@@ -43,14 +43,13 @@ DocCommon.prototype = {
this.mtime = cursor.get_string(TrackerModel.TrackerColumns.MTIME)[0];
this.resourceUrn = cursor.get_string(TrackerModel.TrackerColumns.RESOURCE_URN)[0];
+ this._type = cursor.get_string(TrackerModel.TrackerColumns.TYPE)[0];
+ this.pixbuf = Utils.pixbufFromRdfType(this._type);
+
// sanitize
if (!this.author)
this.author = '';
- // might eventually get updated with a thumbnail by a subclass
- let type = cursor.get_string(TrackerModel.TrackerColumns.TYPE)[0];
- this.pixbuf = Utils.pixbufFromRdfType(type);
-
// overridden in subclasses
this.uri = null;
@@ -60,7 +59,8 @@ DocCommon.prototype = {
},
refreshIcon: function() {
- // fallback
+ this.pixbuf = Utils.pixbufFromRdfType(this._type);
+ this.emit('icon-updated');
},
destroy: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]