Gtk.MenuShell::insert

function callback(menu_shell, child:Gtk.Widget, position:Number, ):void;

The ::insert signal is emitted when a new Gtk.MenuItem is added to a Gtk.MenuShell. A separate signal is used instead of GtkContainer::add because of the need for an additional position parameter.

The inverse of this signal is the GtkContainer::removed signal.

Since 3.2

menu_shell

instance of Gtk.MenuShell that is emitting the signal

child

the Gtk.MenuItem that is being inserted

position

the position at which the insert occurs