Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

histdetails: desensitize up/down buttons

Changeset 9dcecf4c8975

Parent cc169e9c4b14

by Adrian Buehlmann

Changes to one file · Browse files at 9dcecf4c8975 Showing diff from parent cc169e9c4b14 Diff from another changeset...

 
91
92
93
 
 
94
95
96
97
98
 
 
 
 
 
 
 
 
 
99
100
101
 
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
@@ -91,11 +91,22 @@
  rightvbox.pack_start(self.up_button, False, False, 2)   rightvbox.pack_start(self.down_button, False, False, 4)   + self.tv.connect('cursor-changed', lambda tv: self.update_buttons()) +   self.show_all()     def update_buttons(self):   self._btn_apply.set_sensitive(self.dirty)   + model, seliter = self.tv.get_selection().get_selected() + + next = model.iter_next(seliter) + self.down_button.set_sensitive(next != None) + + firstiter = model.get_iter_first() + islast = model.get_path(seliter) != model.get_path(firstiter) + self.up_button.set_sensitive(islast) +   def up_clicked(self, button):   model, seliter = self.tv.get_selection().get_selected()   i = model.get_iter_first()