## GtkComboBoxEntry

GtkComboBoxEntry —

## Synopsis

    #include <gtk/gtk.h>

    struct      GtkComboBoxEntry;
    GtkWidget*  gtk_combo_box_entry_new         (void);
    GtkWidget*  gtk_combo_box_entry_new_with_model
                                                (GtkTreeModel *model,
                                                 gint text_column);
    void        gtk_combo_box_entry_set_text_column
                                                (GtkComboBoxEntry *entry_box,
                                                 gint text_column);
    gint        gtk_combo_box_entry_get_text_column
                                                (GtkComboBoxEntry *entry_box);

## Object Hierarchy

      GObject
       +----GtkObject
             +----GtkWidget
                   +----GtkContainer
                         +----GtkBin
                               +----GtkComboBox
                                     +----GtkComboBoxEntry

## Implemented Interfaces

GtkComboBoxEntry implements AtkImplementorIface and GtkCellLayout.

## Properties

      "text-column"          gint                 : Read / Write

## Description

## Details

### struct GtkComboBoxEntry

    struct GtkComboBoxEntry;

### gtk_combo_box_entry_new ()

    GtkWidget*  gtk_combo_box_entry_new         (void);

Creates a new GtkComboBoxEntry which has a GtkEntry as child. After construction, you should set a model using `gtk_combo_box_set_model()` and a text_column * using `gtk_combo_box_entry_set_text_column()`.

Returns : | A new GtkComboBoxEntry.

Since 2.4

### gtk_combo_box_entry_new_with_model ()

    GtkWidget*  gtk_combo_box_entry_new_with_model
                                                (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 its data manipulation API.

`model` : | A GtkTreeModel.
`text_column` : | A column in `model` to get the strings from.
Returns : | A new GtkComboBoxEntry.

Since 2.4

### gtk_combo_box_entry_set_text_column ()

    void        gtk_combo_box_entry_set_text_column
                                                (GtkComboBoxEntry *entry_box,
                                                 gint text_column);

Sets the model column which `entry_box` should use to get strings from to be `text_column`.

`entry_box` : | A GtkComboBoxEntry.
`text_column` : | A column in `model` to get the strings from.

Since 2.4.

### gtk_combo_box_entry_get_text_column ()

    gint        gtk_combo_box_entry_get_text_column
                                                (GtkComboBoxEntry *entry_box);

Returns the column which `entry_box` is using to get the strings from.

`entry_box` : | A GtkComboBoxEntry.
Returns : | A column in the data source model of `entry_box`.

Since 2.4

## Properties

"`text-column`" (gint : Read / Write) | A column in the data source model to get the strings from.