summaryrefslogtreecommitdiff
path: root/gtk/gtksorter.c
Commit message (Collapse)AuthorAgeFilesLines
* Drop gtkintl.hMatthias Clasen2022-09-241-1/+2
| | | | | Include gtkprivate.h for I_() and glib-i18n.h for gettext macros.
* g-i: add missing since annotationsBilal Elmoussaoui2021-11-131-0/+2
|
* sorter: Cosmetic docs changesMatthias Clasen2021-05-221-7/+7
|
* gtk: Clean up docs syntaxMatthias Clasen2021-05-221-1/+1
| | | | Replace leftover gtk-doc syntax (#Type) with backquotes.
* Documentation fixesMatthias Clasen2021-05-201-2/+2
| | | | | Mostly fixing up indentation of continuation lines, and other small cleanups.
* Handle static inline GtkOrdering functionEmmanuele Bassi2021-03-111-0/+21
| | | | | | | | | | | | | The introspection scanner does not handle `static inline` functions: they are not in the shared library, so cannot be dlsym() out of it; and the `static` keyword tells g-ir-scanner to skip the function declaration entirely. We can trick the scanner into thinking the gtk_ordering_from_cmpfunc() symbol is a real, public one, by declaring and defining a regular function under the `__GI_SCANNER__` guard; the symbol does not appear when actually building GTK, or any code using GTK, so we don't risk collisions.
* sorter: Convert docsMatthias Clasen2021-03-111-46/+56
|
* sorter: Introduce GtkSortKeysBenjamin Otte2020-07-221-2/+151
| | | | | | | | | | | | GtkSortKeys is an immutable struct that can be used to manage "sort keys" for items. Sort keys are memory that is created specifically for sorting. Because sorting involves lots of comparisons, it's a good idea to prepare the data relevant for sorting in advance and sort on that data. In measurements with a PropertyExpression on a string sorter, it's about ??? faster
* docs: Revise sorter docs a bitMatthias Clasen2020-07-161-3/+2
|
* sorter: Remove a return_if_fail()Benjamin Otte2020-07-091-1/+2
| | | | It's too expsensive.
* Add GtkSorterMatthias Clasen2020-05-301-0/+207
This is a helper object for sorting, similar to GtkFilter.