event-editor: Focus the whole title entry on start

This avoids the text cursor being positioned at the start of the entry.

Fixes: https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1452
Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/631>
This commit is contained in:
Jean-François Fortin Tam
2025-08-30 00:24:15 -04:00
parent 9213a4fbe4
commit d86d0f7e1e
+1 -1
View File
@@ -75,7 +75,7 @@ gcal_reminders_section_set_event (GcalEventEditorSection *section,
gtk_editable_set_text (GTK_EDITABLE (self->summary_entry), gcal_event_get_summary (event));
gtk_editable_set_text (GTK_EDITABLE (self->location_entry), gcal_event_get_location (event));
adw_entry_row_grab_focus_without_selecting (self->summary_entry);
gtk_widget_grab_focus (GTK_WIDGET (self->summary_entry));
gtk_widget_remove_css_class (GTK_WIDGET (self->summary_entry), "error");