adg: fix GTK2 building
There is still one access to the (now unexistent) cache pointer left out by 40c071c469ea. This is conditionally built only with GTK2 enabled.