1
0
Fork 0
mirror of https://github.com/diamondburned/cchat-gtk.git synced 2024-11-01 12:04:15 +00:00
cchat-gtk/internal/ui/messages/input/spellcheck.go

16 lines
253 B
Go
Raw Normal View History

// +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()
}
}