/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 branchview/treeview.py

  • Committer: Jelmer Vernooij
  • Date: 2012-03-23 15:02:38 UTC
  • Revision ID: jelmer@samba.org-20120323150238-kan2r255chh2z2v6
Fix searching in tree views.

Show diffs side-by-side

added added

removed removed

Lines of Context:
354
354
        # from the key (that is the key is found in a REVNO at the offset 0)
355
355
        # or if a MESSAGE *contains* the key anywhere (that is, the key is
356
356
        # found case insensitively in a MESSAGE at any offset)
357
 
        def search_equal_func(model, column, key, iter):
 
357
        def search_equal_func(model, column, key, iter, ignored):
358
358
            return (model.get_value(iter, treemodel.REVNO).find(key) != 0
359
359
                and model.get_value(iter, treemodel.MESSAGE).lower().find(key.lower()) == -1)
360
360