GtkCellRendererCombo

GtkCellRendererCombo —

Synopsis


#include <gtk/gtk.h>


struct      GtkCellRendererCombo;
GtkCellRenderer* gtk_cell_renderer_combo_new
                                            (void);


Object Hierarchy


  GObject
   +----GtkObject
         +----GtkCellRenderer
               +----GtkCellRendererText
                     +----GtkCellRendererCombo

Properties


  "has-entry"            gboolean             : Read / Write
  "model"                GtkTreeModel         : Read / Write
  "text-column"          gint                 : Read / Write

Description

Details

struct GtkCellRendererCombo

struct GtkCellRendererCombo;


gtk_cell_renderer_combo_new ()

GtkCellRenderer* gtk_cell_renderer_combo_new
                                            (void);

Creates a new GtkCellRendererCombo Adjust how text is drawn using object properties. Object properties can be set globally (with g_object_set()). Also, with GtkTreeViewColumn, you can bind a property to a value in a GtkTreeModel. For example, you can bind the "text" property on the cell renderer to a string value in the model, thus rendering a different string in each row of the GtkTreeView.

Returns : the new cell renderer

Since 2.6

Properties

"has-entry" (gboolean : Read / Write)

If %FALSE, don't allow to enter strings other than the chosen ones.

"model" (GtkTreeModel : Read / Write)

The :model property holds a tree model containing the possible values for the combo box. Use the :text_column property to specify the column holding the values.

Since 2.6

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

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