Gtk.Widget.prototype.reparent

function reparent(new_parent:Gtk.Widget):void {
    // Gjs wrapper for gtk_widget_reparent()
}

Moves a widget from one Gtk.Container to another, handling reference count issues to avoid destroying the widget.

new_parent

a Gtk.Container to move the widget into