/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: 2011-11-30 21:45:54 UTC
  • Revision ID: jelmer@samba.org-20111130214554-5kfx0b5y7t5zh033
Extend branch preferences, show location widget.

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, ignored):
 
357
        def search_equal_func(model, column, key, iter):
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
 
            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)
 
457
            menu = RevisionMenu(self.branch.repository, 
 
458
                [self.get_revision().revision_id],
 
459
                self.branch)
462
460
            menu.connect('tag-added', lambda w, t, r: self.add_tag(t, r))
463
461
            menu.popup(None, None, None, None, event.button, event.get_time())
464
462