summaryrefslogtreecommitdiff
path: root/gtkcalls_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-25 15:06:51 -0500
committerPietro Gagliardi <[email protected]>2014-02-25 15:06:51 -0500
commit06fa3a5174e02ebf1061e67e60530c6d519eb9c1 (patch)
tree4ee67ce5dc7aa8d10152915a422f5adc6ad6d9ba /gtkcalls_unix.go
parent04ae299ef0918ad1e0c4482b71c00b49484924bb (diff)
Added password entry fields; they are the alternate mode of LineEdit.
Diffstat (limited to 'gtkcalls_unix.go')
-rw-r--r--gtkcalls_unix.go6
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))