gui/event-popover: Always focus action button

Previously, if there was a meeting row, the join button would be focused
instead of the action button. This ended up being undesired behavior, so
it's been removed.

Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1445

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/626>
This commit is contained in:
ARAKHNID
2025-08-26 17:47:49 +00:00
committed by Marge Bot
parent 1ab336009e
commit 616481b60c
+1 -7
View File
@@ -662,16 +662,10 @@ static void
gcal_event_popover_map (GtkWidget *widget)
{
GcalEventPopover *self = (GcalEventPopover *) widget;
GtkListBoxRow *first_meeting_row;
GTK_WIDGET_CLASS (gcal_event_popover_parent_class)->map (widget);
first_meeting_row = gtk_list_box_get_row_at_index (self->meetings_listbox, 0);
if (first_meeting_row)
gtk_widget_grab_focus (GTK_WIDGET (first_meeting_row));
else
gtk_widget_grab_focus (self->action_button);
gtk_widget_grab_focus (self->action_button);
}