Exemplo n.º 1
0
func (l *label) SetText(text string) {
	ctext := togstr(text)
	defer freegstr(ctext)
	C.gtk_label_set_text(l.label, ctext)
}
Exemplo n.º 2
0
func gtk_label_set_text(widget *C.GtkWidget, text string) {
	ctext := C.CString(text)
	defer C.free(unsafe.Pointer(ctext))
	C.gtk_label_set_text(togtklabel(widget), togstr(ctext))
}
Exemplo n.º 3
0
func (self *Label) SetText(str string) {
	s := gobject.GString(str)
	defer s.Free()
	C.gtk_label_set_text(self.object, (*C.gchar)(s.GetPtr()))
}
Exemplo n.º 4
0
// SetText is a wrapper around gtk_label_set_text().
func (v *Label) SetText(str string) {
	cstr := C.CString(str)
	defer C.free(unsafe.Pointer(cstr))
	C.gtk_label_set_text(v.native(), (*C.gchar)(cstr))
}
Exemplo n.º 5
0
func gtk_label_set_text(label GtkWidget, s string) {
	n := C.CString(s)
	defer C.free(unsafe.Pointer(n))
	C.gtk_label_set_text(Arg(label), n)
}