pspp-sheet-view: Add "special-cells" property to speed drawing many columns.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 12 Nov 2011 05:50:31 +0000 (21:50 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 25 Apr 2012 05:41:41 +0000 (22:41 -0700)
commita0a6abd7f428676f2c5dfa43bebc7d980d687fbb
tree0898070e70ae616307b57d2e3463b4718127e6b2
parent5a2caf22268ce4211830147389ba299d52b7dbad
pspp-sheet-view: Add "special-cells" property to speed drawing many columns.

A "special cell" is a cell that is editable or activatable.  When a row
that contains a special cell is selected, the cursor is drawn around a
single cell; when other rows are selected, the cursor is drawn around the
entire row.

With the default of "detect" (the only mode previously supported), whether
a given row contains a special cell is detected automatically.  This is the
best choice most of the time.  For sheet views that contain more than 100
columns, an explicit "yes" or "no" improves performance.
src/ui/gui/pspp-sheet-private.h
src/ui/gui/pspp-sheet-view.c
src/ui/gui/pspp-sheet-view.h