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.
This commit is contained in:
bootchk 2023-12-31 08:32:56 -05:00 committed by Lloyd Konneker
parent 0edf079d4e
commit d26433036c
1 changed files with 2 additions and 2 deletions

View File

@ -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);