Mercurial > snowl
diff extension/content/collections.js @ 195:1abed11b59f9
display icons for people
author | Myk Melez <myk@mozilla.org> |
---|---|
date | Sat, 26 Jul 2008 00:08:02 -0700 |
parents | bdb8643cbeab |
children | eab942fd6223 |
line wrap: on
line diff
--- a/extension/content/collections.js Fri Jul 25 22:32:02 2008 -0700 +++ b/extension/content/collections.js Sat Jul 26 00:08:02 2008 -0700 @@ -170,9 +170,9 @@ } }, - getRowProperties: function (aRow, aProperties) {}, - getCellProperties: function (aRow, aColumn, aProperties) {}, - getColumnProperties: function(aColumnID, aColumn, aProperties) {}, + getRowProperties: function (row, properties) {}, + getCellProperties: function (row, column, properties) {}, + getColumnProperties: function(columnID, column, properties) {}, setCellText: function(aRow, aCol, aValue) { let statement = SnowlDatastore.createStatement("UPDATE sources SET name = :name WHERE id = :id"); @@ -237,11 +237,12 @@ { let grouping = { - nameColumn: "authors.name" - // FIXME: get a favicon for people + nameColumn: "authors.name", + iconURLColumn: "authors.iconURL" } let collection = new SnowlCollection(null, null, grouping); collection.name = "People"; + collection.defaultFaviconURI = URI.get("chrome://snowl/content/icons/user.png"); this._collections.push(collection); }