Browse files

Merge branch 'fix_interspacing'

* fix_interspacing:
  Remove cell size adjustment
  Remove the horizontal spacing between the rows in the commit list tableview.
  • Loading branch information...
2 parents d8068b1 + 6886bc5 commit 792cfd69414dc19d08d045ce0baff38473db76b6 @pieter committed Aug 27, 2008
Showing with 927 additions and 931 deletions.
  1. +923 −926 English.lproj/RepositoryWindow.xib
  2. +1 −0 PBDetailController.h
  3. +3 −0 PBDetailController.m
  4. +0 −5 PBGitRevisionCell.m
View
1,849 English.lproj/RepositoryWindow.xib
923 additions, 926 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
1 PBDetailController.h
@@ -16,6 +16,7 @@
IBOutlet NSTreeController* treeController;
IBOutlet NSOutlineView* fileBrowser;
IBOutlet NSSearchField* searchField;
+ IBOutlet NSTableView* commitList;
int selectedTab;
View
3 PBDetailController.m
@@ -34,6 +34,9 @@ - (void)awakeFromNib
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
View
5 PBGitRevisionCell.m
@@ -87,11 +87,6 @@ - (void) drawWithFrame: (NSRect) rect inView:(NSView *)view
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];

0 comments on commit 792cfd6

Please sign in to comment.