dash: Make recent docs display two columns

The design has smaller icons in two columns.  Add a new
custom display to docDisplay for it.

Clean up some of the texture cache handling for recent URIs so
it's not size-dependent, since the dash size is now different
from the default GenericDisplay size.
This commit is contained in:
Colin Walters
2009-08-16 22:23:44 -04:00
parent dd1a309cb6
commit 2dcd0511c4
5 changed files with 215 additions and 34 deletions

View File

@ -64,7 +64,6 @@ const PANE_BORDER_WIDTH = 2;
const PANE_BACKGROUND_COLOR = new Clutter.Color();
PANE_BACKGROUND_COLOR.from_pixel(0x000000f4);
function Pane() {
this._init();
}
@ -604,10 +603,8 @@ Dash.prototype = {
let docsSection = new Section(_("RECENT DOCUMENTS"));
let docDisplay = new DocDisplay.DocDisplay();
docDisplay.load();
let docDisplay = new DocDisplay.DashDocDisplay();
docsSection.content.append(docDisplay.actor, Big.BoxPackFlags.EXPAND);
createPaneForDetails(this, docDisplay);
this._moreDocsPane = null;
docsSection.header.moreLink.connect('activated', Lang.bind(this, function (link) {