You can try reparent() method of Gtk.Widget. You can check docs at this link. If I remember well you should reparent child widget first, and then remove old parent widget. If it doesn't work post in comment and I'll check my docs (currently not on that machine sry).