/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:33:50 UTC
  • mto: This revision was merged to the branch mainline in revision 317.
  • Revision ID: daniel.schierbeck@gmail.com-20071014153350-ejjs1qt77w66fzzr
Refactored the GTK window code, creating a single base window class that handles keyboard events.

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