/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 viz/branchwin.py

  • Committer: Jasper Groenewegen
  • Date: 2008-07-20 12:53:30 UTC
  • mto: This revision was merged to the branch mainline in revision 571.
  • Revision ID: colbrac@xs4all.nl-20080720125330-rtqfmxutca5rz0z6
Modify DiffWidget to include a checkbutton to wrap long lines in the diff view

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
 
58
58
        self.set_title(branch.nick + " - revision history")
59
59
 
60
 
        # Use three-quarters of the screen by default
61
 
        screen = self.get_screen()
62
 
        monitor = screen.get_monitor_geometry(0)
63
 
        width = int(monitor.width * 0.75)
64
 
        height = int(monitor.height * 0.75)
65
60
        # user-configured window size
66
61
        size = self._load_size('viz-window-size')
67
62
        if size:
68
63
            width, height = size
 
64
        else:
 
65
            # Use three-quarters of the screen by default
 
66
            screen = self.get_screen()
 
67
            monitor = screen.get_monitor_geometry(0)
 
68
            width = int(monitor.width * 0.75)
 
69
            height = int(monitor.height * 0.75)
69
70
        self.set_default_size(width, height)
70
71
        self.set_size_request(width/3, height/3)
71
72
        self.connect("size-allocate", self._on_size_allocate, 'viz-window-size')