Ok, for your info, I suspect your problem is that Ubuntu is distributing a GTK3 version of Geany, so the dependencies are GTK3 and thats what `apt-get build-deps` checked for, but the source built defaults to GTK2 and so that is why it is whining about missing GTK2. You could try `--enable-gtk3` on configure to build the GTK3 version from source if the installed version is gtk3 (as indicated by the debug messages).