mirror of
https://gitlab.gnome.org/GNOME/gimp.git
synced 2025-07-03 17:33:25 +00:00
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:
parent
8474606d55
commit
8c080b220f
1 changed files with 6 additions and 7 deletions
|
@ -2576,13 +2576,12 @@ dlg_run (GimpProcedure *procedure,
|
|||
dlg->init = FALSE;
|
||||
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,
|
||||
"gflare-name", dlg->gflare->name,
|
||||
NULL);
|
||||
|
||||
run = TRUE;
|
||||
}
|
||||
|
||||
g_object_unref (src_buffer);
|
||||
|
@ -3455,10 +3454,10 @@ ed_run (GtkWindow *parent,
|
|||
NULL);
|
||||
|
||||
gimp_dialog_set_alternative_button_order (GTK_DIALOG (shell),
|
||||
RESPONSE_RESCAN,
|
||||
GTK_RESPONSE_OK,
|
||||
GTK_RESPONSE_CANCEL,
|
||||
-1);
|
||||
RESPONSE_RESCAN,
|
||||
GTK_RESPONSE_OK,
|
||||
GTK_RESPONSE_CANCEL,
|
||||
-1);
|
||||
|
||||
g_signal_connect (shell, "response",
|
||||
G_CALLBACK (ed_response),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue