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

  • Committer: Curtis Hovey
  • Date: 2011-08-27 20:13:10 UTC
  • mto: This revision was merged to the branch mainline in revision 741.
  • Revision ID: sinzui.is@verizon.net-20110827201310-idqm23ikh2a9wojv
inlined PANGO_PIXELS macro because it is not public.

Show diffs side-by-side

added added

removed removed

Lines of Context:
325
325
            width = self.graph_cell.get_preferred_width(self.treeview)[1]
326
326
            if width > 500:
327
327
                width = 500
 
328
            elif width == 0:
 
329
                # The get_preferred_width() call got an insane value.
 
330
                width = 200
328
331
            self.graph_column.set_fixed_width(width)
329
332
            self.graph_column.set_max_width(width)
330
333
            self.index = index