Menu.attach

void attach(gtk.widget.Widget child, uint leftAttach, uint rightAttach, uint topAttach, uint bottomAttach)

Adds a new #GtkMenuItem 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.menu.Menu.detach].

Parameters

childa #GtkMenuItem
leftAttachThe column number to attach the left side of the item to
rightAttachThe column number to attach the right side of the item to
topAttachThe row number to attach the top of the item to
bottomAttachThe row number to attach the bottom of the item to