1 <!-- ##### SECTION Title ##### -->
4 <!-- ##### SECTION Short_Description ##### -->
5 A widget used to choose from a list of items
7 <!-- ##### SECTION Long_Description ##### -->
9 A #GtkComboBox is a widget that allows the user to choose from a
10 list of valid choices. The #GtkComboBox displays the selected
11 choice. When activated, the #GtkComboBox displays a popup
12 which allows the user to make a new choice. The style in which
13 the selected value is displayed, and the style of the popup is
14 determined by the current theme. It may be similar to a #GtkOptionMenu,
15 or similar to a Windows-style combo box.
19 Unlike its predecessors #GtkCombo and #GtkOptionMenu, the #GtkComboBox
20 uses the model-view pattern; the list of valid choices is specified in the
21 form of a tree model, and the display of the choices can be adapted to
22 the data in the model by using cell renderers, as you would in a tree view.
23 This is possible since #GtkComboBox implements the #GtkCellLayout interface.
24 The tree model holding the valid choices is not restricted to a flat list,
25 it can be a real tree, and the popup will reflect the tree structure.
29 In addition to the model-view API, #GtkComboBox offers a simple API which
30 is suitable for text-only combo boxes, and hides the complexity of managing
31 the data in a model. It consists of the functions gtk_combo_box_new_text(),
32 gtk_combo_box_append_text(), gtk_combo_box_insert_text(),
33 gtk_combo_box_prepend_text(), gtk_combo_box_remove_text() and
34 gtk_combo_box_get_active_text().
37 <!-- ##### SECTION See_Also ##### -->
39 #GtkComboBoxEntry, #GtkTreeModel, #GtkCellRenderer
42 <!-- ##### SECTION Stability_Level ##### -->
45 <!-- ##### STRUCT GtkComboBox ##### -->
51 <!-- ##### SIGNAL GtkComboBox::changed ##### -->
56 @combobox: the object which received the signal.
58 <!-- ##### ARG GtkComboBox:active ##### -->
63 <!-- ##### ARG GtkComboBox:add-tearoffs ##### -->
68 <!-- ##### ARG GtkComboBox:column-span-column ##### -->
73 <!-- ##### ARG GtkComboBox:focus-on-click ##### -->
78 <!-- ##### ARG GtkComboBox:has-frame ##### -->
83 <!-- ##### ARG GtkComboBox:model ##### -->
88 <!-- ##### ARG GtkComboBox:row-span-column ##### -->
93 <!-- ##### ARG GtkComboBox:wrap-width ##### -->
98 <!-- ##### ARG GtkComboBox:appears-as-list ##### -->
103 <!-- ##### FUNCTION gtk_combo_box_new ##### -->
109 <!-- # Unused Parameters # -->
113 <!-- ##### FUNCTION gtk_combo_box_new_with_model ##### -->
122 <!-- ##### FUNCTION gtk_combo_box_get_wrap_width ##### -->
131 <!-- ##### FUNCTION gtk_combo_box_set_wrap_width ##### -->
140 <!-- ##### FUNCTION gtk_combo_box_get_row_span_column ##### -->
149 <!-- ##### FUNCTION gtk_combo_box_set_row_span_column ##### -->
158 <!-- ##### FUNCTION gtk_combo_box_get_column_span_column ##### -->
167 <!-- ##### FUNCTION gtk_combo_box_set_column_span_column ##### -->
176 <!-- ##### FUNCTION gtk_combo_box_get_active ##### -->
185 <!-- ##### FUNCTION gtk_combo_box_set_active ##### -->
192 <!-- # Unused Parameters # -->
196 <!-- ##### FUNCTION gtk_combo_box_get_active_iter ##### -->
206 <!-- ##### FUNCTION gtk_combo_box_set_active_iter ##### -->
215 <!-- ##### FUNCTION gtk_combo_box_get_model ##### -->
224 <!-- ##### FUNCTION gtk_combo_box_set_model ##### -->
233 <!-- ##### FUNCTION gtk_combo_box_new_text ##### -->
241 <!-- ##### FUNCTION gtk_combo_box_append_text ##### -->
250 <!-- ##### FUNCTION gtk_combo_box_insert_text ##### -->
260 <!-- ##### FUNCTION gtk_combo_box_prepend_text ##### -->
269 <!-- ##### FUNCTION gtk_combo_box_remove_text ##### -->
278 <!-- ##### FUNCTION gtk_combo_box_get_active_text ##### -->
287 <!-- ##### FUNCTION gtk_combo_box_popup ##### -->
295 <!-- ##### FUNCTION gtk_combo_box_popdown ##### -->
303 <!-- ##### FUNCTION gtk_combo_box_get_popup_accessible ##### -->
312 <!-- ##### FUNCTION gtk_combo_box_get_row_separator_func ##### -->
321 <!-- ##### FUNCTION gtk_combo_box_set_row_separator_func ##### -->
332 <!-- ##### FUNCTION gtk_combo_box_set_add_tearoffs ##### -->
341 <!-- ##### FUNCTION gtk_combo_box_get_add_tearoffs ##### -->
350 <!-- ##### FUNCTION gtk_combo_box_set_focus_on_click ##### -->
359 <!-- ##### FUNCTION gtk_combo_box_get_focus_on_click ##### -->