/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: Gary van der Merwe
  • Date: 2007-08-10 10:45:06 UTC
  • mto: This revision was merged to the branch mainline in revision 256.
  • Revision ID: garyvdm@gmail.com-20070810104506-wo2mp9zfkh338axe
Make icon locations consistant between source and installed version. Let glade nkow where to find the icons with a project file.

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
 
from bzrlib.plugins.gtk.window import Window
39
 
 
40
 
class DiffWindow(Window):
 
38
 
 
39
 
 
40
class DiffWindow(gtk.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, parent=None):
48
 
        Window.__init__(self, parent)
 
47
    def __init__(self):
 
48
        gtk.Window.__init__(self, gtk.WINDOW_TOPLEVEL)
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 = None
 
177
            specific_files = []
178
178
 
179
179
        s = StringIO()
180
180
        show_diff_trees(self.parent_tree, self.rev_tree, s, specific_files)