GtkCustomSorter

GtkCustomSorter — Sorting with a callback

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GtkSorter
        ╰── GtkCustomSorter

Includes

#include <gtk/gtk.h>

Description

GtkCustomSorter is a GtkSorter implementation that sorts via a traditional GCompareDataFunc callback.

Functions

gtk_custom_sorter_new ()

GtkSorter *
gtk_custom_sorter_new (GCompareDataFunc sort_func,
                       gpointer user_data,
                       GDestroyNotify user_destroy);

Creates a new GtkSorter that works by calling sort_func to compare items.

Parameters

sort_func

the GCompareDataFunc to use for sorting

 

user_data

user data to pass to sort_func .

[nullable]

user_destroy

destroy notify for user_data .

[nullable]

Returns

a new GTkSorter

Types and Values

GtkCustomSorter

typedef struct _GtkCustomSorter GtkCustomSorter;