Exemple #1
0
func (c *checkbox) SetText(text string) {
	ctext := togstr(text)
	defer freegstr(ctext)
	C.gtk_button_set_label(c.button, ctext)
}
Exemple #2
0
// Button interface
func (self *Button) SetLabel(label string) {
	s := gobject.GString(label)
	//defer s.Free()
	C.gtk_button_set_label(self.object, (*C.gchar)(s.GetPtr()))
}
Exemple #3
0
func (b *Button) SetLabel(label string) {
	C.gtk_button_set_label(b.g(), (*C.gchar)(C.CString(label)))
}
Exemple #4
0
func gtk_button_set_label(button *C.GtkWidget, label string) {
	clabel := C.CString(label)
	defer C.free(unsafe.Pointer(clabel))
	C.gtk_button_set_label(togtkbutton(button), togstr(clabel))
}
Exemple #5
0
func (b *button) SetText(text string) {
	ctext := togstr(text)
	defer freegstr(ctext)
	C.gtk_button_set_label(b.button, ctext)
}
Exemple #6
0
func (b *Button) SetLabel(label string) {
	l := _GString(label)
	defer _GFree(unsafe.Pointer(l))
	C.gtk_button_set_label(b.c, l)
}