/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 viz/branchwin.py

  • Committer: Jelmer Vernooij
  • Date: 2008-03-27 16:27:29 UTC
  • mto: (450.1.5 trunk)
  • mto: This revision was merged to the branch mainline in revision 457.
  • Revision ID: jelmer@samba.org-20080327162729-eydrkliuspbqyu6x
Support displaying multiple tips in viz.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    for a particular branch.
29
29
    """
30
30
 
31
 
    def __init__(self, branch, start, maxnum, parent=None):
 
31
    def __init__(self, branch, start_revs, maxnum, parent=None):
32
32
        """Create a new BranchWindow.
33
33
 
34
34
        :param branch: Branch object for branch to show.
35
 
        :param start: Revision id of top revision.
 
35
        :param start_revs: Revision ids of top revisions.
36
36
        :param maxnum: Maximum number of revisions to display, 
37
37
                       None for no limit.
38
38
        """
41
41
        self.set_border_width(0)
42
42
 
43
43
        self.branch      = branch
44
 
        self.start       = start
 
44
        self.start_revs  = start_revs
45
45
        self.maxnum      = maxnum
46
46
        self.config      = GlobalConfig()
47
47
 
222
222
        """Construct the top-half of the window."""
223
223
        # FIXME: Make broken_line_length configurable
224
224
 
225
 
        self.treeview = TreeView(self.branch, self.start, self.maxnum, self.compact_view)
 
225
        self.treeview = TreeView(self.branch, self.start_revs, self.maxnum, self.compact_view)
226
226
 
227
227
        self.treeview.connect('revision-selected',
228
228
                self._treeselection_changed_cb)