/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: Jelmer Vernooij
  • Date: 2012-07-10 08:38:04 UTC
  • mto: This revision was merged to the branch mainline in revision 794.
  • Revision ID: jelmer@samba.org-20120710083804-ohksjny2tgdd10y3
Remove tests and preferences page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
336
336
        align.add(self.treeview)
337
337
        # user-configured size
338
338
        size = self._load_size('viz-graph-size')
 
339
        if size:
 
340
            width, height = size
 
341
            align.set_size_request(width, height)
 
342
        else:
 
343
            (width, height) = self.get_size()
 
344
            align.set_size_request(width, int(height / 2.5))
339
345
        self._save_size_on_destroy(align, 'viz-graph-size')
340
346
        align.show()
341
347