Gtk.ComboBox.prototype.get_active
function get_active():Number { // Gjs wrapper for gtk_combo_box_get_active() }
Returns the index of the currently active item, or -1 if there's no active item. If the model is a non-flat treemodel, and the active item is not an immediate child of the root of the tree, this function returns <literal>gtk_tree_path_get_indices (path)[0]</literal>, where <literal>path</literal> is the Gtk.TreePath of the active item.
Since 2.4
- Returns
An integer which is the index of the currently active item, or -1 if there's no active item.