Example #1
0
func (a *area) SetTextFieldText(text string) {
	ctext := togstr(text)
	defer freegstr(ctext)
	C.gtk_entry_set_text(a.textfield, ctext)
}
Example #2
0
func gtk_entry_set_text(widget *C.GtkWidget, text string) {
	ctext := C.CString(text)
	defer C.free(unsafe.Pointer(ctext))
	C.gtk_entry_set_text(togtkentry(widget), togstr(ctext))
}
Example #3
0
func (t *textfield) SetText(text string) {
	ctext := togstr(text)
	defer freegstr(ctext)
	C.gtk_entry_set_text(t.entry, ctext)
}
Example #4
0
// Button interface
func (self *Entry) SetText(label string) {
	s := gobject.GString(label)
	//defer s.Free()
	C.gtk_entry_set_text(self.object, (*C.gchar)(s.GetPtr()))
}