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/jduff/gitnub.git
Search Repo:
Paging should always update the main view even if the selected row index 
is unchanged

Also scroll to the top of the commits table when paging
kballard (author)
Fri Mar 21 20:32:47 -0700 2008
commit  20c775ccf131482b31947d71c13ede336855be2c
tree    4e519f271f59be2c313bd8ea8bc9f0554c0da96e
parent  641904f03793f40db6227ff6768434d49be1ce33
...
133
134
135
 
 
 
 
136
 
137
138
139
 
140
141
142
...
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
0
@@ -133,10 +133,16 @@ class CommitsController < OSX::NSObject
0
   end
0
 
0
   def select_latest_commit
0
+ indices = @commits_table.selectedRowIndexes
0
+ if indices.isEqualToIndexSet(NSIndexSet.indexSetWithIndex(0))
0
+ @commits_table.selectRowIndexes_byExtendingSelection(NSIndexSet.indexSet, false)
0
+ end
0
     @commits_table.selectRowIndexes_byExtendingSelection(NSIndexSet.indexSetWithIndex(0), false)
0
+ @commits_table.scrollRowToVisible(0)
0
   end
0
   
0
   def update_main_document
0
+ return unless active_commit
0
     diffs = []
0
     doc = @commit_details.mainFrame.DOMDocument
0
     title, message = active_commit.message.split("\n", 2)

Comments

    No one has commented yet.