GtkComboBoxEntry

GtkComboBoxEntry —

Synopsis


#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);


Object Hierarchy


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

Implemented Interfaces

GtkComboBoxEntry implements AtkImplementorIface and GtkCellLayout.

Properties


  "text-column"          gint                 : Read / Write / Construct Only

Description

Details

struct GtkComboBoxEntry

struct GtkComboBoxEntry;


gtk_combo_box_entry_new ()

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


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. 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

Properties

"text-column" (gint : Read / Write / Construct Only)

A column in the data source model to get the strings from.