Switch to using GSpell for wxTextCtrl proof checker in wxGTK

Use GSpell rather than GtkSpell because GSpell also allows to check
single line text controls.

Closes https://github.com/wxWidgets/wxWidgets/pull/2516
This commit is contained in:
Iwbnwif Yiw
2021-09-08 21:02:44 +01:00
committed by Vadim Zeitlin
parent 0fd138a4e7
commit 5ba2461fd1
6 changed files with 83 additions and 68 deletions

View File

@@ -1410,8 +1410,11 @@ public:
Currently this is supported in wxMSW (when running under Windows 8 or
later), wxGTK when using GTK 3 and wxOSX. In addition, wxMSW requires
that the text control has the wxTE_RICH2 style set. wxGTK3 and wxOSX
require that the control has the wxTE_MULTILINE style.
that the text control has the wxTE_RICH2 style set, while wxOSX
requires that the control has the wxTE_MULTILINE style.
When using wxGTK, this method only works if gspell library was
available during the library build.
@param options
A wxTextProofOptions object specifying the desired behaviour