]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Allow direct use of X11 to be conditionally compiled out.
authorSimon Tatham <anakin@pobox.com>
Sat, 8 Aug 2015 15:35:19 +0000 (16:35 +0100)
committerSimon Tatham <anakin@pobox.com>
Sat, 8 Aug 2015 16:54:27 +0000 (17:54 +0100)
commit2ac190c06d516387b4f580c660db9a6808769ce8
tree0e0b9d9ef538b9c5cce70f1812b32e69c2267c6e
parenta6ccb8e72000c53cca779367136ca5c8a9d03a12
Allow direct use of X11 to be conditionally compiled out.

A major aim of introducing GTK 3 support is to permit compiling for
non-X11 platforms that GTK 3 supports, so I'm going to need to be able
to build as a pure GTK application with no use of X11 internals.
Naturally, I don't intend to stop supporting the hybrid GTK+X11 mode
in which X server-side bitmap fonts are available.

Use of X11 can be removed by compiling with -DNOT_X_WINDOWS. That's
the same compatibility flag that was already used by the unfinished OS
X port to disable the X-specific parts of uxpty.c; now it just applies
to more source files.

(There's no 'configure' option to set this flag at present. I haven't
worked out whether we'll need one yet.)
unix/gtkdlg.c
unix/gtkfont.c
unix/gtkwin.c