1
0
Fork 0
mirror of https://github.com/diamondburned/cchat-gtk.git synced 2024-09-27 20:48:45 +00:00
cchat-gtk/internal/ui/messages/input/spellcheck.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()
}
}