Method

Gtk.ComboBoxText.get_active_text

Declaration [src]

char*
gtk_combo_box_text_get_active_text (
  GtkComboBoxText* combo_box
)

Description [src]

Returns the currently active string in combo_box.

If no row is currently selected, NULL is returned. If combo_box contains an entry, this function will return its contents (which will not necessarily be an item from the list).

Return value

Returns: char*

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

Ownership of the data is transferred to the caller
Can be NULL
The string is a NUL terminated UTF-8 string