get_active_id


Description:

public unowned string? get_active_id ()

Returns the ID of the active row of this.

Note:

Use [class@Gtk.DropDown]

This value is taken from the active row and the column specified by the [property@Gtk.ComboBox:id-column] property of this (see [method@Gtk.ComboBox.set_id_column]).

The returned value is an interned string which means that you can compare the pointer by value to other interned strings and that you must not free it.

If the [property@Gtk.ComboBox:id-column] property of this is not set, or if no row is active, or if the active row has a null ID value, then null is returned.

Parameters:

this

a `GtkComboBox`

Returns:

the ID of the active row