diff options
Diffstat (limited to 'gtkcalls_unix.go')
| -rw-r--r-- | gtkcalls_unix.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtkcalls_unix.go b/gtkcalls_unix.go index 14bcdfc..989c80d 100644 --- a/gtkcalls_unix.go +++ b/gtkcalls_unix.go @@ -154,6 +154,12 @@ func gtk_entry_new() *gtkWidget { return fromgtkwidget(C.gtk_entry_new()) } +func gtkPasswordEntryNew() *gtkWidget { + e := gtk_entry_new() + C.gtk_entry_set_visibility(togtkentry(e), C.FALSE) + return e +} + func gtk_entry_set_text(widget *gtkWidget, text string) { ctext := C.CString(text) defer C.free(unsafe.Pointer(ctext)) |
