Menu.detach

void 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.Menu.attachToWidget function was called.