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

  • Committer: Scott James Remnant
  • Date: 2005-10-17 07:55:01 UTC
  • Revision ID: scott@netsplit.com-20051017075501-da054d3ea25e21c5
Add an extra window type, clicking the little icons next to a parent
revision will open a window with the differences between the revision
and that one.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
import gtk
17
17
 
18
18
from branchwin import BranchWindow
 
19
from diffwin import DiffWindow
19
20
 
20
21
 
21
22
class BzrkApp(object):
31
32
 
32
33
    def show(self, branch, start):
33
34
        """Open a new window to show the given branch."""
34
 
        self._num_windows += 1
35
 
 
36
 
        window = BranchWindow()
 
35
        window = BranchWindow(self)
37
36
        window.set_branch(branch, start)
 
37
 
 
38
        self._num_windows += 1
 
39
        window.connect("destroy", self._destroy_cb)
 
40
        window.show()
 
41
 
 
42
    def show_diff(self, branch, revid, parentid):
 
43
        """Open a new window to show a diff between the given revisions."""
 
44
        window = DiffWindow(self)
 
45
        window.set_diff(branch, revid, parentid)
 
46
 
 
47
        self._num_windows += 1
38
48
        window.connect("destroy", self._destroy_cb)
39
49
        window.show()
40
50