CellRendererSpin
⚠️ Deprecated ⚠️
This is deprecated since version 4.10.
List views use widgets to display their contents. You should use class@Gtk.SpinButton instead
Renders a spin button in a cell
GtkCellRendererSpin
renders text in a cell like GtkCellRendererText
from which it is derived. But while GtkCellRendererText
offers a simple entry to edit the text, GtkCellRendererSpin
offers a GtkSpinButton
widget. Of course, that means that the text has to be parseable as a floating point number.
The range of the spinbutton is taken from the 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. GtkCellRendererSpin
also has properties for the GtkCellRendererSpin:climb-rate
and the number of GtkCellRendererSpin:digits
to display. Other GtkSpinButton
properties can be set in a handler for the GtkCellRenderer::editing-started
signal.
Skipped during bindings generation
method
adjustment
: Property has no getter nor settermethod
climb-rate
: Property has no getter nor settermethod
digits
: Property has no getter nor setter
Constructors
Properties
Functions
Emits the "edited" signal. See onEdited.
Emits the "editing-canceled" signal. See onEditingCanceled.
Emits the "editing-started" signal. See onEditingStarted.
This is deprecated since version 4.10.
---This is deprecated since version 4.10.
---This is deprecated since version 4.10.
---This is deprecated since version 4.10.
---This is deprecated since version 4.10.
---This signal gets emitted when the user cancels the process of editing a cell. For example, an editable cell renderer could be written to cancel editing when the user presses Escape.
This signal gets emitted when a cell starts to be edited. The intended use of this signal is to do special setup on @editable, e.g. adding a GtkEntryCompletion
or setting up additional columns in a GtkComboBox
.
This is deprecated since version 4.10.
---This is deprecated since version 4.10.
---This is deprecated since version 4.10.
---This is deprecated since version 4.10.
---This is deprecated since version 4.10.
---This is deprecated since version 4.10.
---This is deprecated since version 4.10.
---