Superclass: cell-renderer-text
cell-renderer-spin renders text in a cell like cell-renderer-text from which it is derived. But while cell-renderer-text offers a simple entry to edit the text, cell-renderer-spin offers a spin-button widget. Of course, that means that the text has to be parseable as a floating point number.
The range of the spin-button is taken from the cell-renderer-spin-adjustment property of the cell renderer, which can be set explicitly or mapped to a column in the tree model, like all properties of cell renders. cell-renderer-spin also has properties for the climb rate and the number of digits to display. Other spin-button properties can be set in a handler for the cell-renderer::editing-started signal.
Slots:
cell-renderer-spin-adjustment
.
The adjustment that holds the value of the spinbutton. This must be non-NIL for the cell renderer to be editable.
double-float
. Accessor: cell-renderer-spin-climb-rate
.
The acceleration rate when you hold down a button.
Allowed values: >= 0
Default value: 0
integer
. Accessor: cell-renderer-spin-digits
.
The number of decimal places to display.
Allowed values: <= 20
Default value: 0
Signals: