File tree Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Expand file tree Collapse file tree 4 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ - (NSMenu *)menuForEvent:(NSEvent *)theEvent
18
18
NSPoint eventLocation = [self convertPoint: [theEvent locationInWindow ] fromView: nil ];
19
19
NSInteger rowIndex = [self rowAtPoint: eventLocation];
20
20
[self selectRowIndexes: [NSIndexSet indexSetWithIndex: rowIndex] byExtendingSelection: TRUE ];
21
- return [[self delegate ] menuForTable: self ];
21
+ return [(PBGitIndexController*) [self delegate ] menuForTable: self ];
22
22
}
23
23
24
24
return nil ;
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ - (void) _repositoryUpdatedNotification:(NSNotification *)notification {
83
83
PBGitRepositoryWatcherEventType eventType = [(NSNumber *)[[notification userInfo ] objectForKey: kPBGitRepositoryEventTypeUserInfoKey ] unsignedIntValue ];
84
84
if (eventType & (PBGitRepositoryWatcherEventTypeWorkingDirectory | PBGitRepositoryWatcherEventTypeIndex)){
85
85
// refresh if the working directory or index is modified
86
- [self refresh: NULL ];
86
+ [self refresh: self ];
87
87
}
88
88
}
89
89
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ - (void) drawLineFromColumn: (int) from toColumn: (int) to inRect: (NSRect) r of
47
47
NSPoint center = NSMakePoint ( origin.x + columnWidth * to, origin.y + r.size .height * 0.5 + 0.5 );
48
48
49
49
NSArray * colors = [PBGitRevisionCell laneColors ];
50
- [[colors objectAtIndex: c % [colors count ]] set ];
50
+ [( NSColor *) [colors objectAtIndex: ( c % [colors count ]) ] set ];
51
51
52
52
NSBezierPath * path = [NSBezierPath bezierPath ];
53
53
[path setLineWidth: 2 ];
Original file line number Diff line number Diff line change 35
35
- (void ) selectCurrentBranch ;
36
36
37
37
- (NSMenu *) menuForRow : (NSInteger )row ;
38
+ - (void ) menuNeedsUpdate : (NSMenu *)menu ;
38
39
39
40
- (IBAction ) fetchPullPushAction : (id )sender ;
40
41
You can’t perform that action at this time.
0 commit comments