/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 01:07:49 UTC
  • Revision ID: scott@netsplit.com-20051017010749-15fa95fc2cf09289
Commit the first version of bzrk.

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
20
19
 
21
20
 
22
21
class BzrkApp(object):
32
31
 
33
32
    def show(self, branch, start):
34
33
        """Open a new window to show the given branch."""
35
 
        window = BranchWindow(self)
 
34
        self._num_windows += 1
 
35
 
 
36
        window = BranchWindow()
36
37
        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
48
38
        window.connect("destroy", self._destroy_cb)
49
39
        window.show()
50
40