Gtk.Menu.prototype.attach

function attach(child:Gtk.Widget, left_attach:Number, right_attach:Number, top_attach:Number, bottom_attach:Number):void {
    // Gjs wrapper for gtk_menu_attach()
}

Adds a new Gtk.MenuItem to a (table) menu. The number of 'cells' that an item will occupy is specified by left_attach, right_attach, top_attach and bottom_attach. These each represent the leftmost, rightmost, uppermost and lower column and row numbers of the table. (Columns and rows are indexed from zero).

Note that this function is not related to Gtk.detach.

Since 2.4

child

a Gtk.MenuItem

left_attach

The column number to attach the left side of the item to

right_attach

The column number to attach the right side of the item to

top_attach

The row number to attach the top of the item to

bottom_attach

The row number to attach the bottom of the item to