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

  • Committer: Daniel Schierbeck
  • Date: 2007-10-14 15:54:57 UTC
  • mto: This revision was merged to the branch mainline in revision 317.
  • Revision ID: daniel.schierbeck@gmail.com-20071014155457-m3ek29p4ima8ev7d
Added the new Window base class.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
from bzrlib.diff import show_diff_trees
36
36
from bzrlib.errors import NoSuchFile
37
37
from bzrlib.trace import warning
38
 
 
39
 
 
40
 
class DiffWindow(gtk.Window):
 
38
from bzrlib.plugins.gtk.window import Window
 
39
 
 
40
class DiffWindow(Window):
41
41
    """Diff window.
42
42
 
43
43
    This object represents and manages a single window containing the
44
44
    differences between two revisions on a branch.
45
45
    """
46
46
 
47
 
    def __init__(self):
48
 
        gtk.Window.__init__(self, gtk.WINDOW_TOPLEVEL)
 
47
    def __init__(self, parent=None):
 
48
        Window.__init__(self, parent)
49
49
        self.set_border_width(0)
50
50
        self.set_title("bzrk diff")
51
51
 
174
174
        if specific_files == [ None ]:
175
175
            return
176
176
        elif specific_files == [ "" ]:
177
 
            specific_files = []
 
177
            specific_files = None
178
178
 
179
179
        s = StringIO()
180
180
        show_diff_trees(self.parent_tree, self.rev_tree, s, specific_files)