func ListStoreNew(types ...glib.Type) (*ListStore, error) {
	gtypes := C.alloc_types(C.int(len(types)))
	for n, val := range types {
		C.set_type(gtypes, C.int(n), C.GType(val))
	}
	defer C.g_free(C.gpointer(gtypes))
	c := C.gtk_list_store_newv(C.gint(len(types)), gtypes)
	if c == nil {
		return nil, nilPtrErr
	}

	ls := wrapListStore(glib.Take(unsafe.Pointer(c)))
	return ls, nil
}
func ListStoreNew(types ...glib.Type) (*ListStore, error) {
	gtypes := C.alloc_types(C.int(len(types)))
	for n, val := range types {
		C.set_type(gtypes, C.int(n), C.GType(val))
	}
	defer C.g_free(C.gpointer(gtypes))
	c := C.gtk_list_store_newv(C.gint(len(types)), gtypes)
	if c == nil {
		return nil, nilPtrErr
	}

	ls := wrapListStore(glib.Take(unsafe.Pointer(c)))
	return ls, nil
}
func ListStoreNew ( types ... glib . Type ) ( * ListStore , error ) { gtypes := C . alloc_types ( C . int ( len ( types ) ) ) for n , val := range types { C . set_type ( gtypes , C . int ( n ) , C . GType ( val ) ) } defer C . g_free ( C . gpointer ( gtypes ) ) c := C . gtk_list_store_newv ( C . gint ( len ( types ) ) , gtypes ) if c == nil { return nil , nilPtrErr } ls := wrapListStore ( glib . Take ( unsafe . Pointer ( c ) ) ) return ls , nil }
// ListStoreNew is a wrapper around gtk_list_store_newv().
ListStoreNew is a wrapper around gtk_list_store_newv () .