2003-10-01 22:43:30 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
GtkComboBox
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
2004-10-11 18:08:35 +00:00
|
|
|
A widget used to choose from a list of items
|
2003-10-01 22:43:30 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
2004-12-02 21:51:48 +00:00
|
|
|
A #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.
|
|
|
|
</para>
|
2003-10-01 22:43:30 +00:00
|
|
|
|
2004-12-02 21:51:48 +00:00
|
|
|
<para>
|
|
|
|
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.
|
2003-10-01 22:43:30 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
2004-12-02 21:51:48 +00:00
|
|
|
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 gtk_combo_box_new_text(),
|
|
|
|
gtk_combo_box_append_text(), gtk_combo_box_insert_text(),
|
|
|
|
gtk_combo_box_prepend_text(), gtk_combo_box_remove_text() and
|
|
|
|
gtk_combo_box_get_active_text().
|
|
|
|
</para>
|
2003-10-01 22:43:30 +00:00
|
|
|
|
2004-12-02 21:51:48 +00:00
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
#GtkComboBoxEntry, #GtkTreeModel, #GtkCellRenderer
|
2003-10-01 22:43:30 +00:00
|
|
|
</para>
|
|
|
|
|
2005-06-20 22:06:27 +00:00
|
|
|
<!-- ##### SECTION Stability_Level ##### -->
|
|
|
|
|
|
|
|
|
2010-05-08 05:18:53 +00:00
|
|
|
<!-- ##### SECTION Image ##### -->
|
|
|
|
|
|
|
|
|
2003-10-01 22:43:30 +00:00
|
|
|
<!-- ##### STRUCT GtkComboBox ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2003-10-24 22:16:07 +00:00
|
|
|
|
2004-07-20 02:26:06 +00:00
|
|
|
<!-- ##### SIGNAL GtkComboBox::changed ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combobox: the object which received the signal.
|
|
|
|
|
2006-12-14 14:48:41 +00:00
|
|
|
<!-- ##### SIGNAL GtkComboBox::move-active ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combobox: the object which received the signal.
|
|
|
|
@arg1:
|
|
|
|
|
2007-05-24 05:51:56 +00:00
|
|
|
<!-- ##### SIGNAL GtkComboBox::popdown ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combobox: the object which received the signal.
|
|
|
|
@Returns:
|
|
|
|
|
2006-12-14 14:48:41 +00:00
|
|
|
<!-- ##### SIGNAL GtkComboBox::popup ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combobox: the object which received the signal.
|
|
|
|
|
2004-07-20 02:26:06 +00:00
|
|
|
<!-- ##### ARG GtkComboBox:active ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkComboBox:add-tearoffs ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2008-08-05 18:20:35 +00:00
|
|
|
<!-- ##### ARG GtkComboBox:button-sensitivity ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2004-07-20 02:26:06 +00:00
|
|
|
<!-- ##### ARG GtkComboBox:column-span-column ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2004-08-25 16:21:15 +00:00
|
|
|
<!-- ##### ARG GtkComboBox:focus-on-click ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2004-07-20 02:26:06 +00:00
|
|
|
<!-- ##### ARG GtkComboBox:has-frame ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkComboBox:model ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2006-05-05 16:21:19 +00:00
|
|
|
<!-- ##### ARG GtkComboBox:popup-shown ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2004-07-20 02:26:06 +00:00
|
|
|
<!-- ##### ARG GtkComboBox:row-span-column ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2005-12-20 05:47:43 +00:00
|
|
|
<!-- ##### ARG GtkComboBox:tearoff-title ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2004-07-20 02:26:06 +00:00
|
|
|
<!-- ##### ARG GtkComboBox:wrap-width ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkComboBox:appears-as-list ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2006-12-14 14:48:41 +00:00
|
|
|
<!-- ##### ARG GtkComboBox:arrow-size ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2007-05-24 05:51:56 +00:00
|
|
|
<!-- ##### ARG GtkComboBox:shadow-type ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2003-10-01 22:43:30 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_new ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2010-05-08 05:18:53 +00:00
|
|
|
@void:
|
2003-12-08 22:55:03 +00:00
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_combo_box_new_with_model ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2003-10-01 22:43:30 +00:00
|
|
|
@model:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2004-05-11 04:32:13 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_get_wrap_width ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2003-10-01 22:43:30 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_set_wrap_width ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
|
|
|
@width:
|
|
|
|
|
|
|
|
|
2004-05-11 04:32:13 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_get_row_span_column ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2003-10-01 22:43:30 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_set_row_span_column ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
|
|
|
@row_span:
|
|
|
|
|
|
|
|
|
2004-05-11 04:32:13 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_get_column_span_column ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2003-10-01 22:43:30 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_set_column_span_column ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
|
|
|
@column_span:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_combo_box_get_active ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_combo_box_set_active ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
2004-07-07 16:22:57 +00:00
|
|
|
@index_:
|
2003-10-01 22:43:30 +00:00
|
|
|
|
|
|
|
|
2003-12-08 22:55:03 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_get_active_iter ##### -->
|
2003-10-01 22:43:30 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
2003-12-08 22:55:03 +00:00
|
|
|
@iter:
|
2003-10-01 22:43:30 +00:00
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2003-12-08 22:55:03 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_set_active_iter ##### -->
|
2003-10-01 22:43:30 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2003-12-08 22:55:03 +00:00
|
|
|
@combo_box:
|
|
|
|
@iter:
|
2003-10-01 22:43:30 +00:00
|
|
|
|
|
|
|
|
2003-12-08 22:55:03 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_get_model ##### -->
|
2003-10-01 22:43:30 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
2003-12-08 22:55:03 +00:00
|
|
|
@Returns:
|
2003-10-01 22:43:30 +00:00
|
|
|
|
|
|
|
|
2003-12-08 22:55:03 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_set_model ##### -->
|
2003-10-01 22:43:30 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
2003-12-08 22:55:03 +00:00
|
|
|
@model:
|
2003-10-01 22:43:30 +00:00
|
|
|
|
|
|
|
|
2003-12-08 22:55:03 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_new_text ##### -->
|
2003-10-01 22:43:30 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2010-05-08 05:18:53 +00:00
|
|
|
@void:
|
2003-12-08 22:55:03 +00:00
|
|
|
@Returns:
|
2003-10-01 22:43:30 +00:00
|
|
|
|
|
|
|
|
2003-12-08 22:55:03 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_append_text ##### -->
|
2003-10-25 19:58:51 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2003-12-08 22:55:03 +00:00
|
|
|
@combo_box:
|
|
|
|
@text:
|
2003-10-25 19:58:51 +00:00
|
|
|
|
2003-12-08 22:55:03 +00:00
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_combo_box_insert_text ##### -->
|
2003-10-25 19:58:51 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2003-12-08 22:55:03 +00:00
|
|
|
@combo_box:
|
|
|
|
@position:
|
|
|
|
@text:
|
2003-10-25 19:58:51 +00:00
|
|
|
|
|
|
|
|
2003-12-08 22:55:03 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_prepend_text ##### -->
|
2003-10-25 19:58:51 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2003-12-08 22:55:03 +00:00
|
|
|
@combo_box:
|
|
|
|
@text:
|
2003-10-25 19:58:51 +00:00
|
|
|
|
|
|
|
|
2003-12-08 22:55:03 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_remove_text ##### -->
|
2003-10-25 19:58:51 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2003-12-08 22:55:03 +00:00
|
|
|
@combo_box:
|
|
|
|
@position:
|
2003-10-25 19:58:51 +00:00
|
|
|
|
|
|
|
|
2004-05-11 04:32:13 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_get_active_text ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2010-05-26 02:57:46 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_popup_for_device ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
|
|
|
@device:
|
|
|
|
|
|
|
|
|
2004-02-15 22:47:41 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_popup ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_combo_box_popdown ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
|
|
|
|
|
|
|
|
2004-08-01 05:55:01 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_get_popup_accessible ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_combo_box_get_row_separator_func ##### -->
|
2004-07-07 16:22:57 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2004-08-01 05:55:01 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_set_row_separator_func ##### -->
|
2004-07-07 16:22:57 +00:00
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
2004-08-01 05:55:01 +00:00
|
|
|
@func:
|
|
|
|
@data:
|
|
|
|
@destroy:
|
2004-07-07 16:22:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_combo_box_set_add_tearoffs ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
|
|
|
@add_tearoffs:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_combo_box_get_add_tearoffs ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2005-12-20 05:47:43 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_set_title ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
|
|
|
@title:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_combo_box_get_title ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2004-08-25 16:21:15 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_set_focus_on_click ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo:
|
|
|
|
@focus_on_click:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_combo_box_get_focus_on_click ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2008-08-05 18:20:35 +00:00
|
|
|
<!-- ##### FUNCTION gtk_combo_box_set_button_sensitivity ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
|
|
|
@sensitivity:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_combo_box_get_button_sensitivity ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@combo_box:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|