Gtk.MenuShell.prototype.insert
function insert(child:Gtk.Widget, position:Number):void { // Gjs wrapper for gtk_menu_shell_insert() }
Adds a new Gtk.MenuItem to the menu shell's item list at the position indicated by position.
- child
The Gtk.MenuItem to add
- position
The position in the item list where child is added. Positions are numbered from 0 to n-1