diff options
Diffstat (limited to 'newctrl/textfield_unix.go')
| -rw-r--r-- | newctrl/textfield_unix.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newctrl/textfield_unix.go b/newctrl/textfield_unix.go index 286ad3f..6535d39 100644 --- a/newctrl/textfield_unix.go +++ b/newctrl/textfield_unix.go @@ -31,7 +31,7 @@ func startNewTextField() *textfield { changed: newEvent(), } g_signal_connect( - C.gpointer(unsafe.Pointer(t._widget)), + C.gpointer(unsafe.Pointer(t.widget)), "changed", C.GCallback(C.textfieldChanged), C.gpointer(unsafe.Pointer(t))) @@ -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) - C.gtk_widget_error_bell(t._widget) + C.gtk_widget_error_bell(t.widget) } //export textfieldChanged |
