mirror of
https://github.com/diamondburned/cchat-gtk.git
synced 2024-11-01 12:04:15 +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()
|
||
|
}
|
||
|
}
|