From 3ebbcc981a71bd823464de4e674e8b324de90b01 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 3 Jan 2024 11:43:37 -0500 Subject: [PATCH] Annotate gtk_ordering_from_cmpfunc as skip We do extra work here to make the introspection scanner pick up the docs for the static inline function, but that doesn't make the function actually work in language bindings, so mark it as skip. Fixes: #6298 --- gtk/gtkenums.h | 2 +- gtk/gtksorter.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkenums.h b/gtk/gtkenums.h index e79eceff87..f34a42a3b4 100644 --- a/gtk/gtkenums.h +++ b/gtk/gtkenums.h @@ -681,7 +681,7 @@ typedef enum { GtkOrdering gtk_ordering_from_cmpfunc (int cmpfunc_result); #else /** - * gtk_ordering_from_cmpfunc: + * gtk_ordering_from_cmpfunc: (skip) * @cmpfunc_result: Result of a comparison function * * Converts the result of a `GCompareFunc` like strcmp() to a diff --git a/gtk/gtksorter.c b/gtk/gtksorter.c index 21c1a713dd..c07b39d1f5 100644 --- a/gtk/gtksorter.c +++ b/gtk/gtksorter.c @@ -372,7 +372,7 @@ gtk_sorter_changed_with_keys (GtkSorter *self, */ #ifdef __GI_SCANNER__ /** - * gtk_ordering_from_cmpfunc: + * gtk_ordering_from_cmpfunc: (skip) * @cmpfunc_result: Result of a comparison function * * Converts the result of a `GCompareFunc` like strcmp() to a