Gtk.Menu.prototype.detach
function detach():void { // Gjs wrapper for gtk_menu_detach() }
Detaches the menu from the widget to which it had been attached. This function will call the callback function, @detacher, provided when the Gtk.Menu.prototype.attach_to_widget function was called.