Always set wxUSE_SPELLCHECK to 1 by default for simplicity

It does no real harm to set it to 1 and this avoids the need for the
platform checks in setup.h files, simplifying things (although it does
require checking for GTK 3 in the code compiled for both GTK 2 and 3, as
gtkspell library can only be used with GTK 3).
This commit is contained in:
Vadim Zeitlin
2021-08-22 21:48:14 +02:00
parent fd9e420b42
commit d9ea30cf84
11 changed files with 34 additions and 70 deletions

View File

@@ -447,17 +447,13 @@
// Recommended setting: 1 (but may be safely disabled if you don't use it)
#define wxUSE_SECRETSTORE 1
// Allow the use of the OS built-in spellchecker on wxTextCtrl (multiline
// only). Currently only wxGTK3 and wxMSW are implemented.
// Allow the use of the OS built-in spell checker in wxTextCtrl.
//
// Default is 1 on wxGTK3 and wxMSW platforms and 0 otherwise.
// Default is 1, the corresponding wxTextCtrl functions simply won't do
// anything if the functionality is not supported by the current platform.
//
// Recommended setting: 1 on supported platforms.
#if (defined(__WXGTK3__) || defined(__WXMSW__))
// Recommended setting: 1 unless you want to save a tiny bit of code.
#define wxUSE_SPELLCHECK 1
#else
#define wxUSE_SPELLCHECK 0
#endif
// Use wxStandardPaths class which allows to retrieve some standard locations
// in the file system