/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/bzrkapp.py

  • Committer: Jelmer Vernooij
  • Date: 2006-05-19 16:37:13 UTC
  • Revision ID: jelmer@samba.org-20060519163713-be77b31c72cbc7e8
Move visualisation code to a separate directory, preparing for bundling 
the GTK+ plugins for bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
1
2
# -*- coding: UTF-8 -*-
2
3
"""Application object.
3
4
 
15
16
import gtk
16
17
 
17
18
from branchwin import BranchWindow
18
 
from bzrlib.plugins.gtk.diff import DiffWindow
 
19
from diffwin import DiffWindow
19
20
 
20
21
 
21
22
class BzrkApp(object):
35
36
 
36
37
    def show_diff(self, branch, revid, parentid):
37
38
        """Open a new window to show a diff between the given revisions."""
38
 
        window = DiffWindow()
39
 
        rev_tree = branch.repository.revision_tree(revid)
40
 
        parent_tree = branch.repository.revision_tree(parentid)
41
 
        description = revid + " - " + branch.nick
42
 
        window.set_diff(description, rev_tree, parent_tree)
 
39
        window = DiffWindow(self)
 
40
        window.set_diff(branch, revid, parentid)
43
41
        window.show()
44
42
 
45
43
    def _destroy_cb(self, widget):