widgets: Center buttons in OverlayDialog

Resolves #15215
The GtkButtonBox that holds the overlay buttons
in GimpOverlayDialog were set to GTK_BUTTONBOX_END,
which caused them to go offscreen on one side on the smaller
overlays like Scale and Sheer.
This patch changes the layout style to GTK_BUTTONBOX_CENTER
to ensure the buttons are centered within the overlay.
This commit is contained in:
Alx Sa 2025-11-03 02:14:42 +00:00
parent 227ca86923
commit 2e6bb273dd

View file

@ -194,7 +194,7 @@ gimp_overlay_dialog_init (GimpOverlayDialog *dialog)
dialog->action_area = gtk_button_box_new (GTK_ORIENTATION_HORIZONTAL);
gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog->action_area),
GTK_BUTTONBOX_END);
GTK_BUTTONBOX_CENTER);
gtk_widget_set_parent (dialog->action_area, GTK_WIDGET (dialog));
gtk_widget_show (dialog->action_area);
}