Adapt for gedit desktop file rename
Adapt to gedit API changes

document.location -> document.get_location();