Merge branch 'fix_interspacing'

* fix_interspacing:
  Remove cell size adjustment
  Remove the horizontal spacing between the rows in the commit list tableview.
This commit is contained in:
Pieter de Bie
2008-08-27 22:37:24 +02:00
4 changed files with 896 additions and 900 deletions
File diff suppressed because it is too large Load Diff
+1
View File
@@ -16,6 +16,7 @@
IBOutlet NSTreeController* treeController;
IBOutlet NSOutlineView* fileBrowser;
IBOutlet NSSearchField* searchField;
IBOutlet NSTableView* commitList;
int selectedTab;
+3
View File
@@ -34,6 +34,9 @@
self.selectedTab = [[NSUserDefaults standardUserDefaults] integerForKey:@"Repository Window Selected Tab Index"];;
[commitController addObserver:self forKeyPath:@"selection" options:(NSKeyValueObservingOptionNew,NSKeyValueObservingOptionOld) context:@"commitChange"];
[treeController addObserver:self forKeyPath:@"selection" options:0 context:@"treeChange"];
NSSize cellSpacing = [commitList intercellSpacing];
cellSpacing.height = 0;
[commitList setIntercellSpacing:cellSpacing];
}
- (void) updateKeys
-5
View File
@@ -87,11 +87,6 @@
NSRect ownRect;
NSDivideRect(rect, &ownRect, &rect, pathWidth, NSMinXEdge);
// Adjust by removing the border
ownRect.size.height += 2;
ownRect.origin.y -= 1;
ownRect.origin.x += 0;
for (PBLine* line in cellInfo.lines) {
if (line.upper == 0)
[self drawLineFromColumn: line.from toColumn: line.to inRect:ownRect offset: ownRect.size.height];