Fix #288 #143 and deprecated gtk_widget_reparent()