plug-ins: Fix reset button on Gradient Flare

Gradient Flare still used gimp_dialog_run ()
for its GimpProcedureDialog, so the Reset
button was treated as Cancel. This fixes it
so that it's usable.
This commit is contained in:
Alx Sa 2024-10-08 20:47:47 +00:00
parent 8474606d55
commit 8c080b220f

View file

@ -2576,13 +2576,12 @@ dlg_run (GimpProcedure *procedure,
dlg->init = FALSE; dlg->init = FALSE;
dlg_preview_update (); dlg_preview_update ();
if (gimp_dialog_run (GIMP_DIALOG (shell)) == GTK_RESPONSE_OK) run = gimp_procedure_dialog_run (GIMP_PROCEDURE_DIALOG (shell));
if (run)
{ {
g_object_set (config, g_object_set (config,
"gflare-name", dlg->gflare->name, "gflare-name", dlg->gflare->name,
NULL); NULL);
run = TRUE;
} }
g_object_unref (src_buffer); g_object_unref (src_buffer);
@ -3455,10 +3454,10 @@ ed_run (GtkWindow *parent,
NULL); NULL);
gimp_dialog_set_alternative_button_order (GTK_DIALOG (shell), gimp_dialog_set_alternative_button_order (GTK_DIALOG (shell),
RESPONSE_RESCAN, RESPONSE_RESCAN,
GTK_RESPONSE_OK, GTK_RESPONSE_OK,
GTK_RESPONSE_CANCEL, GTK_RESPONSE_CANCEL,
-1); -1);
g_signal_connect (shell, "response", g_signal_connect (shell, "response",
G_CALLBACK (ed_response), G_CALLBACK (ed_response),