Log Message: Add option (off by default) to build gtk support. From PR 44878 by David H. Gutteridge, with some minor adjustments. Plus a couple small patches to make gtk support actually build. :-/