/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: Curtis Hovey
  • Date: 2012-01-23 17:04:13 UTC
  • mto: This revision was merged to the branch mainline in revision 772.
  • Revision ID: sinzui.is@verizon.net-20120123170413-ni4u16trezl8pg0s
Do not show widgets when not needed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
326
326
        if getattr(self, 'diff_view', None) is None:
327
327
            self.diff_view = DiffFileView()
328
328
            self.pack2(self.diff_view)
329
 
        self.diff_view.show()
 
329
        if self.SHOW_WIDGETS:
 
330
            self.diff_view.show()
330
331
        for oldname, newname, patch in sections:
331
332
            self.diff_view._diffs[newname] = str(patch)
332
333
            if newname is None: