Added error beep to GTK+ TextField.Invalid().
This commit is contained in:
parent
073ec1d8b3
commit
811ec66d81
|
@ -71,7 +71,7 @@ func (t *textfield) Invalid(reason string) {
|
||||||
creason := togstr(reason)
|
creason := togstr(reason)
|
||||||
defer freegstr(creason)
|
defer freegstr(creason)
|
||||||
C.gtk_entry_set_icon_tooltip_text(t.entry, C.GTK_ENTRY_ICON_SECONDARY, creason)
|
C.gtk_entry_set_icon_tooltip_text(t.entry, C.GTK_ENTRY_ICON_SECONDARY, creason)
|
||||||
// TODO beep
|
C.gtk_widget_error_bell(t._widget)
|
||||||
}
|
}
|
||||||
|
|
||||||
//export textfieldChanged
|
//export textfieldChanged
|
||||||
|
|
Loading…
Reference in New Issue