Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.0, 1.0.1, and 1.0.2

changeset: add icons to indicate the file status

Changeset 99c2eba96e6d

Parent 449ace4589ba

by Yuki KODAMA

Changes to 4 files · Browse files at 99c2eba96e6d Showing diff from parent 449ace4589ba Diff from another changeset...

Added image
Added image
Added image
 
683
684
685
686
687
 
 
 
688
689
690
 
693
694
695
 
 
696
697
698
 
683
684
685
 
 
686
687
688
689
690
691
 
694
695
696
697
698
699
700
701
@@ -683,8 +683,9 @@
  return gtk.gdk.pixbuf_new_from_file_at_size(   iconpath, iconw, iconh)   - addedpixbuf = get_pixbuf('menuadd.ico') - removedpixbuf = get_pixbuf('menudelete.ico') + addedpixbuf = get_pixbuf('fileadd.ico') + removedpixbuf = get_pixbuf('filedelete.ico') + modifiedpixbuf = get_pixbuf('filemodify.ico')     def cell_seticon(column, cell, model, iter):   state = model.get_value(iter, 0) @@ -693,6 +694,8 @@
  pixbuf = addedpixbuf   elif state == 'R':   pixbuf = removedpixbuf + elif state == 'M': + pixbuf = modifiedpixbuf   cell.set_property('pixbuf', pixbuf)     column.set_cell_data_func(iconcell, cell_seticon)