Gtk.ToolItemGroup.prototype.get_item_position

function get_item_position(item:Gtk.ToolItem):Number {
    // Gjs wrapper for gtk_tool_item_group_get_item_position()
}

Gets the position of item in group as index.

Since 2.20

item

a Gtk.ToolItem

Returns

the index of item in group or -1 if item is no child of group