summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-24 01:14:17 -0400
committerPietro Gagliardi <[email protected]>2014-08-24 01:14:17 -0400
commit811ec66d811181aa353680b6fdca24f90db0545b (patch)
tree30530971416f24d94f2a9318dc04f6c2bcf2ca68
parent073ec1d8b3f1f51c79c60bb6c015596f0c7a017b (diff)
Added error beep to GTK+ TextField.Invalid().
-rw-r--r--redo/textfield_unix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/redo/textfield_unix.go b/redo/textfield_unix.go
index cef2765..b06da02 100644
--- a/redo/textfield_unix.go
+++ b/redo/textfield_unix.go
@@ -71,7 +71,7 @@ func (t *textfield) Invalid(reason string) {
creason := togstr(reason)
defer freegstr(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