示例#1
0
文件: glib.go 项目: leif/go-gtk
func (v List) Append(data unsafe.Pointer) *List {
	return &List{C.g_list_append(v.GList, C.gpointer(data))}
}
示例#2
0
文件: glib.go 项目: vvanpo/gotk3
// Append is a wrapper around g_list_append.
func (v *List) Append(data uintptr) *List {
	glist := (*C.GList)(unsafe.Pointer(v))
	glist = C.g_list_append(glist, C.gpointer(data))
	return (*List)(unsafe.Pointer(glist))
}