From c24ac78afd8211e9f2f1c99c3c4c298e8d3aed39 Mon Sep 17 00:00:00 2001 From: Alx Sa Date: Wed, 20 Nov 2024 11:36:19 +0000 Subject: [PATCH] dialogs: Restore focus to Layer Name in Layer dialogue In 2.10, the "Layer Name" field in the Layer dialogue was auto-focused (perhaps because it was the first field in the dialogue). This patch restores this behavior so users can type the name and press Enter/Return to continue their new layer workflow. --- app/dialogs/item-options-dialog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/dialogs/item-options-dialog.c b/app/dialogs/item-options-dialog.c index c096f63b45..3413d7920d 100644 --- a/app/dialogs/item-options-dialog.c +++ b/app/dialogs/item-options-dialog.c @@ -195,6 +195,8 @@ item_options_dialog_new (GimpImage *image, gimp_grid_attach_aligned (GTK_GRID (grid), 0, private->grid_row++, name_label, 0.0, 0.5, private->name_entry, 1); + /* Make the item name entry field have focus on creation */ + gtk_widget_grab_focus (private->name_entry); radio_box = gimp_enum_radio_box_new (GIMP_TYPE_COLOR_TAG, G_CALLBACK (gimp_radio_button_update),