From 8eae22306a9aa35de174b395e94b0bb28357e108 Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Sun, 29 Mar 2026 12:36:39 +0000 Subject: [PATCH] widgets: Block signals when changing visible filters eec9d512 did not block calls to gimp_drawable_filters_editor_visible_all_toggled () when updating the "All Visible" toggle button in gimp_drawable_filters_editor_set_sensitive (). This resulted in unexpected visibility changes in some combinations of filters being turned on and off. This patch adds the blocking calls around the call to gtk_toggle_button_set_active () to keep this consistent. --- app/widgets/gimpdrawabletreeview-filters.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/widgets/gimpdrawabletreeview-filters.c b/app/widgets/gimpdrawabletreeview-filters.c index b2e359cc3c..7688ff225b 100644 --- a/app/widgets/gimpdrawabletreeview-filters.c +++ b/app/widgets/gimpdrawabletreeview-filters.c @@ -454,8 +454,15 @@ gimp_drawable_filters_editor_set_sensitive (GimpDrawableTreeView *view) is_editable = (index >= first_editable && index <= last_editable); + g_signal_handlers_block_by_func (editor->visible_button, + gimp_drawable_filters_editor_visible_all_toggled, + view); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (editor->visible_button), has_visible_filters); + g_signal_handlers_unblock_by_func (editor->visible_button, + gimp_drawable_filters_editor_visible_all_toggled, + view); + gtk_widget_set_sensitive (editor->visible_button, TRUE); gtk_widget_set_sensitive (editor->edit_button,