public
Fork of Caged/gitnub
Description: A Gitk-like application written in RubyCocoa that looks like it belongs on a Mac. See the wiki for downloads and screenshots.
Homepage: http://alternateidea.com
Clone URL: git://github.com/eventualbuddha/gitnub.git
Search Repo:
Make the table refreshing per loaded image a bit more efficient
kballard (author)
Fri Mar 21 20:40:06 -0700 2008
commit  fb8340316fca8690e7a18f112d300a8783f70b45
tree    a11e07bf6f87dbd56caff741831b5a4f09a89404
parent  20c775ccf131482b31947d71c13ede336855be2c
...
119
120
121
122
123
124
125
126
127
128
 
 
 
 
 
129
130
131
...
119
120
121
 
 
 
 
 
 
 
122
123
124
125
126
127
128
129
0
@@ -119,13 +119,11 @@ class CommitsController < OSX::NSObject
0
   def imageLoadForURL_didFinishLoading(url, image)
0
     email = @icon_url_map[url]
0
     @icons[email] = image
0
- # indices = NSMutableIndexSet.indexSet
0
- # @commits.each_with_index do |commit, idx|
0
- # if commit.author.email == email
0
- # indices.addIndex(idx)
0
- # end
0
- # end
0
- @commits_table.setNeedsDisplay(true)
0
+ @commits_table.rowsInRect(@commits_table.enclosingScrollView.documentVisibleRect).to_range.each do |i|
0
+ if @commits[i].author.email == email
0
+ @commits_table.setNeedsDisplayInRect(@commits_table.rectOfRow(i))
0
+ end
0
+ end
0
   end
0
   
0
   def imageLoadForURL_didFailWithError(url, error)

Comments

    No one has commented yet.