Gtk.ComboBox.prototype.get_active_id
function get_active_id():String { // Gjs wrapper for gtk_combo_box_get_active_id() }
Returns the ID of the active row of combo_box. This value is taken from the active row and the column specified by the Gtk.id-column property of combo_box (see Gtk.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 Gtk.id-column property of combo_box is not set, or if no row is active, or if the active row has a null ID value, then null is returned.
Since 3.0
- Returns
the ID of the active row, or null