From 7af987d31b8096c6bf6b0589589194c83aeaf705 Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Sun, 4 May 2025 13:48:21 +0000 Subject: [PATCH] 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. --- plug-ins/screenshot/screenshot.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plug-ins/screenshot/screenshot.c b/plug-ins/screenshot/screenshot.c index 996416dafd..ce3fdca7c3 100644 --- a/plug-ins/screenshot/screenshot.c +++ b/plug-ins/screenshot/screenshot.c @@ -602,6 +602,8 @@ shoot_dialog (GimpProcedure *procedure, 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); if ((capabilities & SCREENSHOT_CAN_SHOOT_POINTER) || @@ -611,6 +613,8 @@ shoot_dialog (GimpProcedure *procedure, if (capabilities & SCREENSHOT_CAN_DELAY_WINDOW_SHOT) 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); run = gimp_procedure_dialog_run (GIMP_PROCEDURE_DIALOG (dialog));