1// Same copyright and license as the rest of the files in this project 2 3// +build !glib_2_40,!glib_2_42,!glib_2_44 4 5package glib 6 7// #include <gio/gio.h> 8// #include <glib.h> 9// #include <glib-object.h> 10// #include "glib.go.h" 11// #include "glib_since_2_44.go.h" 12// #include "glib_since_2_46.go.h" 13import "C" 14import "github.com/gotk3/gotk3/internal/callback" 15 16/* 17 * GListStore 18 */ 19 20// Sort is a wrapper around g_list_store_sort(). 21func (v *ListStore) Sort(compareFunc CompareDataFunc) { 22 C._g_list_store_sort(v.native(), C.gpointer(callback.Assign(compareFunc))) 23} 24