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:
@@ -662,16 +662,10 @@ static void
|
|||||||
gcal_event_popover_map (GtkWidget *widget)
|
gcal_event_popover_map (GtkWidget *widget)
|
||||||
{
|
{
|
||||||
GcalEventPopover *self = (GcalEventPopover *) widget;
|
GcalEventPopover *self = (GcalEventPopover *) widget;
|
||||||
GtkListBoxRow *first_meeting_row;
|
|
||||||
|
|
||||||
GTK_WIDGET_CLASS (gcal_event_popover_parent_class)->map (widget);
|
GTK_WIDGET_CLASS (gcal_event_popover_parent_class)->map (widget);
|
||||||
|
|
||||||
first_meeting_row = gtk_list_box_get_row_at_index (self->meetings_listbox, 0);
|
gtk_widget_grab_focus (self->action_button);
|
||||||
|
|
||||||
if (first_meeting_row)
|
|
||||||
gtk_widget_grab_focus (GTK_WIDGET (first_meeting_row));
|
|
||||||
else
|
|
||||||
gtk_widget_grab_focus (self->action_button);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user