Reverted from commit 53212b0b91e5773650b25cd4316042a25ef02080 (back to the gtk_widget_reparent function)
Cleanup
Merge pull request #396 from FreeRDP/issue366

Issue #366. Tested with XDMCP plugin.