From d26433036ce0293e4eae38586a9221ca483849aa Mon Sep 17 00:00:00 2001 From: bootchk Date: Sun, 31 Dec 2023 08:32:56 -0500 Subject: [PATCH] Fix #10536 Plugins: Fractal Explorer fails Use g_connect_signal_swapped for "resource-set" signal from Resource Choosers, to match the signal handler expecting "callback data" in the first arg. Otherwise the first arg is the object emitting the signal. --- plug-ins/fractal-explorer/fractal-explorer-dialogs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plug-ins/fractal-explorer/fractal-explorer-dialogs.c b/plug-ins/fractal-explorer/fractal-explorer-dialogs.c index 81e208a1c8..27c5304ddf 100644 --- a/plug-ins/fractal-explorer/fractal-explorer-dialogs.c +++ b/plug-ins/fractal-explorer/fractal-explorer-dialogs.c @@ -973,8 +973,8 @@ explorer_dialog (GimpProcedure *procedure, &gradient_samples); gradient_button = gimp_gradient_chooser_new (_("FractalExplorer Gradient"), NULL, GIMP_RESOURCE (gradient)); - g_signal_connect (gradient_button, "resource-set", - G_CALLBACK (explorer_gradient_select_callback), config); + g_signal_connect_swapped (gradient_button, "resource-set", + G_CALLBACK (explorer_gradient_select_callback), config); gtk_box_pack_start (GTK_BOX (hbox), gradient_button, TRUE, TRUE, 0); gtk_widget_set_visible (gradient_button, TRUE);