Class: Gtk::CellRendererCombo

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#has_entry=(has_entry) ⇒ TrueClass

If true, the cell renderer will include an entry and allow to enter values other than the ones in the popup list.

Parameters:

  • has_entry (TrueClass)

Returns:

  • (TrueClass)

    has-entry

  • (TrueClass)

    has-entry

#has_entry?TrueClass

If true, the cell renderer will include an entry and allow to enter values other than the ones in the popup list.

Returns:

  • (TrueClass)

    has-entry

#modelGtk::TreeModel

Holds a tree model containing the possible values for the combo box. Use the text_column property to specify the column holding the values.

Returns:

#model=(model) ⇒ Gtk::TreeModel

Holds a tree model containing the possible values for the combo box. Use the text_column property to specify the column holding the values.

Parameters:

Returns:

#newGtk::CellRenderer

Creates a new Gtk::CellRendererCombo. Adjust how text is drawn using object properties. Object properties can be set globally (with g_object_set()). Also, with Gtk::TreeViewColumn, you can bind a property to a value in a Gtk::TreeModel. For example, you can bind the “text” property on the cell renderer to a string value in the model, thus rendering a different string in each row of the Gtk::TreeView.

Returns:

#text_columnInteger

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::CellRendererCombo automatically adds a text cell renderer for this column to its combo box.

Returns:

  • (Integer)

    text-column

#text_column=(text_column) ⇒ Integer

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::CellRendererCombo automatically adds a text cell renderer for this column to its combo box.

Parameters:

  • text_column (Integer)

Returns:

  • (Integer)

    text-column

  • (Integer)

    text-column