Remove remains from cell-based find results outline view

This commit is contained in:
Allan Odgaard
2014-09-29 15:12:23 +02:00
parent 10e370319d
commit d1dd666fbd

View File

@@ -85,20 +85,12 @@ static NSOutlineView* OakCreateOutlineView (NSScrollView** scrollViewOut, NSObje
OakSetAccessibilityLabel(res, accessibilityLabel);
NSTableColumn* tableColumn = [[NSTableColumn alloc] initWithIdentifier:@"checkbox"];
NSButtonCell* dataCell = [NSButtonCell new];
dataCell.buttonType = NSSwitchButton;
dataCell.controlSize = NSSmallControlSize;
dataCell.imagePosition = NSImageOnly;
dataCell.font = [NSFont controlContentFontOfSize:[NSFont smallSystemFontSize]];
tableColumn.dataCell = dataCell;
tableColumn.width = 50;
[res addTableColumn:tableColumn];
[res setOutlineTableColumn:tableColumn];
tableColumn = [[NSTableColumn alloc] initWithIdentifier:@"match"];
[tableColumn setEditable:NO];
NSTextFieldCell* cell = tableColumn.dataCell;
cell.font = [NSFont controlContentFontOfSize:[NSFont smallSystemFontSize]];
[res addTableColumn:tableColumn];
res.rowHeight = 14;