/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: Vincent Ladeuil
  • Date: 2013-02-26 10:04:48 UTC
  • mto: This revision was merged to the branch mainline in revision 796.
  • Revision ID: v.ladeuil+lp@free.fr-20130226100448-buc0u114uvdtwq05
Commit messages never contain option references, trying to expand them makes no sense.

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
 
454
454
    def _on_revision_selected(self, widget, event):
455
455
        from bzrlib.plugins.gtk.revisionmenu import RevisionMenu
456
456
        if event.button == 3:
457
 
            menu = RevisionMenu(self.branch.repository, 
458
 
                [self.get_revision().revision_id],
459
 
                self.branch)
 
457
            revs = []
 
458
            rev = self.get_revision()
 
459
            if rev is not None:
 
460
                revs.append(rev.revision_id)
 
461
            menu = RevisionMenu(self.branch.repository, revs, self.branch)
460
462
            menu.connect('tag-added', lambda w, t, r: self.add_tag(t, r))
461
463
            menu.popup(None, None, None, None, event.button, event.get_time())
462
464