/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/treeview.py

  • Committer: Daniel Schierbeck
  • Date: 2007-11-22 00:36:32 UTC
  • Revision ID: daniel.schierbeck@gmail.com-20071122003632-yv07kgnr5y05jq63
Set a maximum width on the graph column.

Show diffs side-by-side

added added

removed removed

Lines of Context:
225
225
        self.model = TreeModel(self.branch.repository, linegraphdata)
226
226
        self.graph_cell.columns_len = columns_len
227
227
        width = self.graph_cell.get_size(self.treeview)[2]
 
228
        if width > 500:
 
229
            width = 500
228
230
        self.graph_column.set_fixed_width(width)
229
231
        self.graph_column.set_max_width(width)
230
232
        self.index = index