event-editor/event-editor-dialog: Always grab focus to summary section
Now that the summary section is always focusable, even when the event is non-writable, we can make it grab focus every time. Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/499>
This commit is contained in:
@@ -673,8 +673,5 @@ gcal_event_editor_dialog_present_event (GcalEventEditorDialog *self,
|
|||||||
|
|
||||||
adw_dialog_present (ADW_DIALOG (self), parent);
|
adw_dialog_present (ADW_DIALOG (self), parent);
|
||||||
|
|
||||||
if (self->writable)
|
gtk_widget_grab_focus (GTK_WIDGET (self->summary_section));
|
||||||
gtk_widget_grab_focus (GTK_WIDGET (self->summary_section));
|
|
||||||
else
|
|
||||||
gtk_widget_grab_focus (self->done_button);
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user