Method

GtkComboBoxTextget_active_text

since: 2.24

Declaration [src]

gchar*
gtk_combo_box_text_get_active_text (
  GtkComboBoxText* combo_box
)

Description [src]

Returns the currently active string in combo_box, or NULL if none is selected. If combo_box contains an entry, this function will return its contents (which will not necessarily be an item from the list).

Available since: 2.24

Return value

Type: gchar*

A newly allocated string containing the currently active text. Must be freed with g_free().

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.