Modernize a bit the widget tree

Don't use deprecated functions and use modern
gobject macros