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

@@ -96,13 +96,13 @@ public:
// Overridden wxWindow methods
virtual void SetWindowStyleFlag( long style ) wxOVERRIDE;
#if wxUSE_SPELLCHECK
#if wxUSE_SPELLCHECK && defined(__WXGTK3__)
// Use native spelling and grammar checking functions.
virtual bool EnableProofCheck(bool WXUNUSED(enable) = true,
const wxTextProofOptions& WXUNUSED(options) =
wxTextProofOptions()) wxOVERRIDE;
virtual bool IsProofCheckEnabled() const wxOVERRIDE;
#endif // wxUSE_SPELLCHECK
#endif // wxUSE_SPELLCHECK && __WXGTK3__
// Implementation from now on
void OnDropFiles( wxDropFilesEvent &event );