Support new gtk3 packages and replace calls to depricated functions