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.
This commit is contained in:
Alx Sa 2024-11-20 11:36:19 +00:00 committed by Jehan
parent 4730ec4eb0
commit c24ac78afd
1 changed files with 2 additions and 0 deletions

View File

@ -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),