From 4d8ff3178edca5f1e553ea50826e7b05a55e0147 Mon Sep 17 00:00:00 2001 From: Jehan Date: Fri, 9 Jan 2026 21:50:16 +0100 Subject: [PATCH] libgimpbase: add some API break warning for future improvement in the API. Commit e735054347 clearly shows that gimp_range_estimate_settings() can be improved, but it would not be possible unless we added some argument to know if the increments are meant for an integer widget. --- libgimpbase/gimputils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libgimpbase/gimputils.c b/libgimpbase/gimputils.c index bc4bd39dca..7c7847da91 100644 --- a/libgimpbase/gimputils.c +++ b/libgimpbase/gimputils.c @@ -65,6 +65,7 @@ #include "gimpbasetypes.h" #include "gimputils.h" +#include "gimpversion-private.h" #include "libgimp/libgimp-intl.h" @@ -1578,6 +1579,7 @@ gimp_stack_trace_query (const gchar *prog_name) #endif } +GIMP_WARNING_API_BREAK("gimp_range_estimate_settings(): add a gboolean integer_increments arg? And/or an optional GParamSpec arg. Cf. commit e735054347") /** * gimp_range_estimate_settings: * @lower: the lower value.