Port filename to GFile

I mix 'filename' and 'basename' because I think they are the same thing.