Next: , Previous: cell-renderer-progress, Up: Gtk+ Objects

6.4.13 cell-renderer-spin

— Class: cell-renderer-spin

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.