![]() | ![]() | ![]() | GTK+ Reference Manual | ![]() |
---|
GtkComboBoxEntry —
#include <gtk/gtk.h> struct GtkComboBoxEntry; GtkWidget* gtk_combo_box_entry_new (GtkTreeModel *model, gint text_column); gint gtk_combo_box_entry_get_text_column (GtkComboBoxEntry *entry_box);
GObject +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkComboBox +----GtkComboBoxEntry
GtkComboBoxEntry implements AtkImplementorIface and GtkCellLayout.
"text-column" gint : Read / Write / Construct Only
GtkWidget* gtk_combo_box_entry_new (GtkTreeModel *model, gint text_column);
Creates a new GtkComboBoxEntry which has a GtkEntry as child and a list of strings as popup. You can get the GtkEntry from a GtkComboBoxEntry using GTK_ENTRY (GTK_BIN (combo_box_entry)->child). To add and remove strings from the list, just modify model using it's data manipulation API.
model : | A GtkTreeModel. |
text_column : | A column in model to get the strings from. |
Returns : | A new GtkComboBoxEntry. |
Since 2.4
gint gtk_combo_box_entry_get_text_column (GtkComboBoxEntry *entry_box);
Returns the column which entry_box is using to get the strings from. This is the same column which got passed during construction.
entry_box : | A GtkComboBoxEntry. |
Returns : | A column in the data source model of entry_box. |
Since 2.4
"text-column" (gint : Read / Write / Construct Only) | A column in the data source model to get the strings from. |
<< GtkComboBox | GtkMenu >> |