示例#1
0
文件: group_unix.go 项目: sjn1978/ui
func (g *group) SetText(text string) {
	ctext := togstr(text)
	defer freegstr(ctext)
	C.gtk_frame_set_label(g.frame, ctext)
}
示例#2
0
文件: frame.go 项目: napsy/go-gtk3
// Frame interface
func (self *Frame) SetLabel(label string) {
	s := gobject.GString(label)
	defer s.Free()
	C.gtk_frame_set_label(self.object, (*C.gchar)(s.GetPtr()))
}