/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to annotate/gannotate.py

  • Committer: Sergei Golubchik
  • Date: 2011-03-22 19:05:34 UTC
  • mto: This revision was merged to the branch mainline in revision 725.
  • Revision ID: sergii@pisem.net-20110322190534-o0iqbv48823oxfrr
interactive substring search in gannotate
interactive revno/summary search in vizualize

Show diffs side-by-side

added added

removed removed

Lines of Context:
318
318
        col.add_attribute(cell, "text", TEXT_LINE_COL)
319
319
        tv.append_column(col)
320
320
 
321
 
        # FIXME: Now that C-f is now used for search by text we
322
 
        # may as well disable the auto search.
323
 
        tv.set_search_column(LINE_NUM_COL)
 
321
        # interactive substring search
 
322
        def search_equal_func(model, column, key, iter):
 
323
            return model.get_value(iter, TEXT_LINE_COL).lower().find(key.lower()) == -1
 
324
 
 
325
        tv.set_enable_search(True)
 
326
        tv.set_search_equal_func(search_equal_func)
324
327
 
325
328
        return tv
326
329