mirror of
https://github.com/diamondburned/cchat-gtk.git
synced 2024-12-23 12:46:45 +00:00
16 lines
253 B
Go
16 lines
253 B
Go
|
// +build !nogspell
|
||
|
|
||
|
package input
|
||
|
|
||
|
import (
|
||
|
"github.com/diamondburned/gspell"
|
||
|
"github.com/gotk3/gotk3/gtk"
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
wrapSpellCheck = func(textView *gtk.TextView) {
|
||
|
speller := gspell.GetFromGtkTextView(textView)
|
||
|
speller.BasicSetup()
|
||
|
}
|
||
|
}
|