plug-ins: Convert screenshot dropdowns to radios

This restores the GUI design from 2.10, which requires
less clicks to update settings. It also aligns with
proposed design guidelines to use radio buttons for
parameters with only a few options.
This commit is contained in:
Alx Sa 2025-05-04 13:48:21 +00:00
parent afc1fa5250
commit 7af987d31b

View file

@ -602,6 +602,8 @@ shoot_dialog (GimpProcedure *procedure,
FALSE, "delay-box"); FALSE, "delay-box");
} }
gimp_procedure_dialog_get_widget (GIMP_PROCEDURE_DIALOG (dialog),
"shoot-type", GIMP_TYPE_INT_RADIO_FRAME);
gimp_procedure_dialog_fill (GIMP_PROCEDURE_DIALOG (dialog), "shoot-type", NULL); gimp_procedure_dialog_fill (GIMP_PROCEDURE_DIALOG (dialog), "shoot-type", NULL);
if ((capabilities & SCREENSHOT_CAN_SHOOT_POINTER) || if ((capabilities & SCREENSHOT_CAN_SHOOT_POINTER) ||
@ -611,6 +613,8 @@ shoot_dialog (GimpProcedure *procedure,
if (capabilities & SCREENSHOT_CAN_DELAY_WINDOW_SHOT) if (capabilities & SCREENSHOT_CAN_DELAY_WINDOW_SHOT)
gimp_procedure_dialog_fill (GIMP_PROCEDURE_DIALOG (dialog), "delay-frame", NULL); gimp_procedure_dialog_fill (GIMP_PROCEDURE_DIALOG (dialog), "delay-frame", NULL);
gimp_procedure_dialog_get_widget (GIMP_PROCEDURE_DIALOG (dialog),
"color-profile", GIMP_TYPE_INT_RADIO_FRAME);
gimp_procedure_dialog_fill (GIMP_PROCEDURE_DIALOG (dialog), "color-profile", NULL); gimp_procedure_dialog_fill (GIMP_PROCEDURE_DIALOG (dialog), "color-profile", NULL);
run = gimp_procedure_dialog_run (GIMP_PROCEDURE_DIALOG (dialog)); run = gimp_procedure_dialog_run (GIMP_PROCEDURE_DIALOG (dialog));