Example #1
0
File: glib.go Project: leif/go-gtk
func (v List) Prepend(data unsafe.Pointer) *List {
	return &List{C.g_list_prepend(v.GList, C.gpointer(data))}
}
Example #2
0
File: glib.go Project: vvanpo/gotk3
// Prepend is a wrapper around g_list_prepend.
func (v *List) Prepend(data uintptr) *List {
	glist := (*C.GList)(unsafe.Pointer(v))
	glist = C.g_list_prepend(glist, C.gpointer(data))
	return (*List)(unsafe.Pointer(glist))
}