Fix #288 #144 and deprecated gtk_widget_reparent()