gtkComboBoxNew(show = TRUE)
gtkComboBoxNewWithModel(model, show = TRUE)
gtkComboBoxGetWrapWidth(object)
gtkComboBoxSetWrapWidth(object, width)
gtkComboBoxGetRowSpanColumn(object)
gtkComboBoxSetRowSpanColumn(object, row.span)
gtkComboBoxGetColumnSpanColumn(object)
gtkComboBoxSetColumnSpanColumn(object, column.span)
gtkComboBoxGetActive(object)
gtkComboBoxSetActive(object, index)
gtkComboBoxGetActiveIter(object)
gtkComboBoxSetActiveIter(object, iter)
gtkComboBoxGetModel(object)
gtkComboBoxSetModel(object, model = NULL)
gtkComboBoxNewText(show = TRUE)
gtkComboBoxAppendText(object, text)
gtkComboBoxInsertText(object, position, text)
gtkComboBoxPrependText(object, text)
gtkComboBoxRemoveText(object, position)
gtkComboBoxGetActiveText(object)
gtkComboBoxPopup(object)
gtkComboBoxPopdown(object)
gtkComboBoxGetPopupAccessible(object)
gtkComboBoxGetRowSeparatorFunc(object)
gtkComboBoxSetRowSeparatorFunc(object, func, data = NULL)
gtkComboBoxSetAddTearoffs(object, add.tearoffs)
gtkComboBoxGetAddTearoffs(object)
gtkComboBoxSetTitle(object, title)
gtkComboBoxGetTitle(object)
gtkComboBoxSetFocusOnClick(object, focus.on.click)
gtkComboBoxGetFocusOnClick(object)
gtkComboBoxSetButtonSensitivity(object, sensitivity)
gtkComboBoxGetButtonSensitivity(object)
gtkComboBox(model, show = TRUE)
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkComboBox +----GtkComboBoxEntry
GtkBuildable
, GtkCellLayout
and GtkCellEditable
.GtkComboBox
is a widget that allows the user to choose from a
list of valid choices. The GtkComboBox
displays the selected
choice. When activated, the GtkComboBox
displays a popup
which allows the user to make a new choice. The style in which
the selected value is displayed, and the style of the popup is
determined by the current theme. It may be similar to a GtkOptionMenu
,
or similar to a Windows-style combo box. Unlike its predecessors GtkCombo
and GtkOptionMenu
, the GtkComboBox
uses the model-view pattern; the list of valid choices is specified in the
form of a tree model, and the display of the choices can be adapted to
the data in the model by using cell renderers, as you would in a tree view.
This is possible since GtkComboBox
implements the GtkCellLayout
interface.
The tree model holding the valid choices is not restricted to a flat list,
it can be a real tree, and the popup will reflect the tree structure. In addition to the model-view API, GtkComboBox
offers a simple API which
is suitable for text-only combo boxes, and hides the complexity of managing
the data in a model. It consists of the functions gtkComboBoxNewText
,
gtkComboBoxAppendText
, gtkComboBoxInsertText
,
gtkComboBoxPrependText
, gtkComboBoxRemoveText
and
gtkComboBoxGetActiveText
.gtkComboBox
is the result of collapsing the constructors of GtkComboBox
(gtkComboBoxNew
, gtkComboBoxNewWithModel
, gtkComboBoxNewText
) and accepts a subset of its arguments matching the required arguments of one of its delegate constructors.changed(widget, user.data)
gtkComboBoxSetActiveIter
.
It will also be emitted while typing into a GtkComboBoxEntry,
as well as when selecting an item from the GtkComboBoxEntry's list.
Since 2.4 widget
user.data
move-active(widget, scroll.type, user.data)
widget
scroll.type
GtkScrollType
user.data
popdown(button, user.data)
button
user.data
popup(widget, user.data)
widget
user.data
active
[integer : Read / Write]gtk_tree_path_get_indices (path)[0]
,
where path
is the GtkTreePath
of the active item.
Allowed values: >= -1 Default value: -1 Since 2.4 add-tearoffs
[logical : Read / Write]button-sensitivity
[GtkSensitivityType
: Read / Write]column-span-column
[integer : Read / Write]G_TYPE_INT
in the model. The values of that column are used to determine how many columns a value
in the list will span.
Allowed values: >= -1 Default value: -1 Since 2.4 focus-on-click
[logical : Read / Write]has-frame
[logical : Read / Write]model
[GtkTreeModel
: * : Read / Write]popup-shown
[logical : Read]row-span-column
[integer : Read / Write]G_TYPE_INT
in the model. The values of that column are used to determine how many rows a value in
the list will span. Therefore, the values in the model column pointed to
by this property must be greater than zero and not larger than wrap-width.
Allowed values: >= -1 Default value: -1 Since 2.4 tearoff-title
[character : * : Read / Write]wrap-width
[integer : Read / Write]appears-as-list
[logical : Read]arrow-size
[integer : Read]shadow-type
[GtkShadowType
: Read]GtkComboBoxEntry
GtkTreeModel
GtkCellRenderer