From 5d6e1ec8893f7dc67cd5b99865f994168ff1c0c5 Mon Sep 17 00:00:00 2001 From: Jehan Date: Mon, 3 Mar 2025 18:35:01 +0100 Subject: [PATCH] app: also make sure that we run filters-changed when an operation's argument is updated. While this was already working when updating a filter through the GUI, we could see the weakness in the code when updating through the plug-in API (there, we could again reproduce problematic not-updated bounding box, similar to #12294). --- app/core/gimpdrawablefilter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/core/gimpdrawablefilter.c b/app/core/gimpdrawablefilter.c index bc6083f602..97fd77f600 100644 --- a/app/core/gimpdrawablefilter.c +++ b/app/core/gimpdrawablefilter.c @@ -1805,6 +1805,9 @@ gimp_drawable_filter_add_filter (GimpDrawableFilter *filter) G_CALLBACK (gimp_drawable_filter_reorder), filter, 0); + g_signal_connect_object (G_OBJECT (filter->operation), "notify", + G_CALLBACK (gimp_drawable_filters_changed), + filter->drawable, G_CONNECT_SWAPPED); g_signal_connect_object (G_OBJECT (filter), "active-changed", G_CALLBACK (gimp_drawable_filters_changed), filter->drawable, G_CONNECT_SWAPPED);