Пример #1
0
func (c *checkbox) SetText(text string) {
	ctext := togstr(text)
	defer freegstr(ctext)
	C.gtk_button_set_label(c.button, ctext)
}
Пример #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()))
}
Пример #3
0
func (b *Button) SetLabel(label string) {
	C.gtk_button_set_label(b.g(), (*C.gchar)(C.CString(label)))
}
Пример #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))
}
Пример #5
0
func (b *button) SetText(text string) {
	ctext := togstr(text)
	defer freegstr(ctext)
	C.gtk_button_set_label(b.button, ctext)
}
Пример #6
0
func (b *Button) SetLabel(label string) {
	l := _GString(label)
	defer _GFree(unsafe.Pointer(l))
	C.gtk_button_set_label(b.c, l)
}