Package: gtk

Class gtk-cell-renderer-combo

Superclasses

gtk-cell-renderer-text, gtk-cell-renderer, g-object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

has-entry
The has-entry property of type :boolean (Read / Write)
If true, the cell renderer will include an entry and allow to enter values other than the ones in the popup list.
Default value: true
model
The model property of type gtk-tree-model (Read / Write) Holds a tree model containing the possible values for the combo box. Use the text-column property to specify the column holding the values.
text-column
The text-column property of type :int (Read / Write)
Specifies the model column which holds the possible values for the combo box. Note that this refers to the model specified in the model property, not the model backing the tree view to which this cell renderer is attached. gtk-cell-renderer-combo automatically adds a text cell renderer for this column to its combo box.
Allowed values: >= -1
Default value: -1

Details

gtk-cell-renderer-combo renders text in a cell like gtk-cell-renderer-text from which it is derived. But while gtk-cell-renderer-text offers a simple entry to edit the text, gtk-cell-renderer-combo offers a gtk-combo-box or gtk-combo-box-entry widget to edit the text. The values to display in the combo box are taken from the tree model specified in the model property.

The combo cell renderer takes care of adding a text cell renderer to the combo box and sets it to display the column specified by its text-column property. Further properties of the combo box can be set in a handler for the "editing-started" signal.

The gtk-cell-renderer-combo cell renderer was added in GTK 2.6.

Signal Details

The "changed" signal
 lambda (combo path iter)    :run-last      
The signal is emitted each time after the user selected an item in the combo box, either by using the mouse or the arrow keys. Contrary to the gtk-combo-box widget, the "changed" signal is not emitted for changes made to a selected item in the entry. The iter argument corresponds to the newly selected item in the combo box and it is relative to the gtk-tree-model object set via the model property on the gtk-cell-renderer-combo object. Note that as soon as you change the model displayed in the tree view, the tree view will immediately cease the editing operating. This means that you most probably want to refrain from changing the model until the combo cell renderer emits the edited or "editing-canceled" signal.
combo
The gtk-cell-renderer-combo object on which the signal is emitted.
path
A string of the path identifying the edited cell, relative to the tree view model.
iter
The gtk-tree-iter instance selected in the combo box, relative to the combo box model.
 

Slot Access Functions

Inherited Slot Access Functions

gtk-cell-renderer-text-align-set
gtk-cell-renderer-text-alignment
gtk-cell-renderer-text-attributes
gtk-cell-renderer-text-background
gtk-cell-renderer-text-background-gdk
gtk-cell-renderer-text-background-rgba
gtk-cell-renderer-text-background-set
gtk-cell-renderer-text-editable
gtk-cell-renderer-text-editable-set
gtk-cell-renderer-text-ellipsize
gtk-cell-renderer-text-ellipsize-set
gtk-cell-renderer-text-family
gtk-cell-renderer-text-family-set
gtk-cell-renderer-text-font
gtk-cell-renderer-text-font-desc
gtk-cell-renderer-text-foreground
gtk-cell-renderer-text-foreground-gdk
gtk-cell-renderer-text-foreground-rgba
gtk-cell-renderer-text-foreground-set
gtk-cell-renderer-text-language
gtk-cell-renderer-text-language-set
gtk-cell-renderer-text-markup
gtk-cell-renderer-text-max-width-chars
gtk-cell-renderer-text-placeholder-text
gtk-cell-renderer-text-rise
gtk-cell-renderer-text-rise-set
gtk-cell-renderer-text-scale
gtk-cell-renderer-text-scale-set
gtk-cell-renderer-text-single-paragraph-mode
gtk-cell-renderer-text-size
gtk-cell-renderer-text-size-points
gtk-cell-renderer-text-size-set
gtk-cell-renderer-text-stretch
gtk-cell-renderer-text-stretch-set
gtk-cell-renderer-text-strikethrough
gtk-cell-renderer-text-strikethrough-set
gtk-cell-renderer-text-style
gtk-cell-renderer-text-style-set
gtk-cell-renderer-text-text
gtk-cell-renderer-text-underline
gtk-cell-renderer-text-underline-set
gtk-cell-renderer-text-variant
gtk-cell-renderer-text-variant-set
gtk-cell-renderer-text-weight
gtk-cell-renderer-text-weight-set
gtk-cell-renderer-text-width-chars
gtk-cell-renderer-text-wrap-mode
gtk-cell-renderer-text-wrap-width
gtk-cell-renderer-cell-background
gtk-cell-renderer-cell-background-gdk
gtk-cell-renderer-cell-background-rgba
gtk-cell-renderer-cell-background-set
gtk-cell-renderer-editing
gtk-cell-renderer-height
gtk-cell-renderer-is-expanded
gtk-cell-renderer-is-expander
gtk-cell-renderer-mode
gtk-cell-renderer-sensitive
gtk-cell-renderer-visible
gtk-cell-renderer-width
gtk-cell-renderer-xalign
gtk-cell-renderer-xpad
gtk-cell-renderer-yalign
gtk-cell-renderer-ypad
g-object-has-reference
g-object-pointer
g-object-signal-handlers
2020-6-20