From 06fa3a5174e02ebf1061e67e60530c6d519eb9c1 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 25 Feb 2014 15:06:51 -0500 Subject: Added password entry fields; they are the alternate mode of LineEdit. --- gtkcalls_unix.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gtkcalls_unix.go') 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)) -- cgit v1.2.3