/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: Szilveszter Farkas (Phanatic)
  • Date: 2007-11-07 09:42:33 UTC
  • mfrom: (330.5.6 bzr-gtk-0.92.0)
  • mto: This revision was merged to the branch mainline in revision 368.
  • Revision ID: szilveszter.farkas@gmail.com-20071107094233-shodhytmd3v1r4im
Merge changes from the 0.92.0 release branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
        self.model = TreeModel(self.branch.repository, linegraphdata)
138
138
        self.graph_cell.columns_len = columns_len
139
139
        width = self.graph_cell.get_size(self.treeview)[2]
 
140
        if width > 500:
 
141
            width = 500
140
142
        self.graph_column.set_fixed_width(width)
141
143
        self.graph_column.set_max_width(width)
142
144
        self.index = index
161
163
 
162
164
        self.treeview.set_rules_hint(True)
163
165
        self.treeview.set_search_column(treemodel.REVNO)
164
 
        self.treeview.set_tooltip_column(treemodel.MESSAGE)
 
166
        
 
167
        # Fix old PyGTK bug - by JAM
 
168
        set_tooltip = getattr(self.treeview, 'set_tooltip_column', None)
 
169
        if set_tooltip is not None:
 
170
            set_tooltip(treemodel.MESSAGE)
165
171
 
166
172
        self.treeview.get_selection().connect("changed",
167
173
                self._on_selection_changed)