views/month-view-row: Replace "adjacent with "overlaying" event

"Adjacent" is incorrect because we are focusing the event that is
in front of the month cell.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-calendar/-/merge_requests/816>
This commit is contained in:
Hari Rana
2026-08-25 22:02:50 -04:00
parent 14869fa02b
commit 2e5379982b
3 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -1467,17 +1467,17 @@ gcal_month_view_row_focus_underlying_cell (GcalMonthViewRow *self,
}
/**
* gcal_month_view_row_focus_adjacent_event:
* gcal_month_view_row_focus_overlaying_event:
* @self: a #GcalMonthViewRow
* @widget: the month cell
*
* Focuses the adjacent event widget.
* Focuses the overlaying event widget.
*
* Returns: %TRUE if the event widget grabbed focus
*/
gboolean
gcal_month_view_row_focus_adjacent_event (GcalMonthViewRow *self,
GtkWidget *widget)
gcal_month_view_row_focus_overlaying_event (GcalMonthViewRow *self,
GtkWidget *widget)
{
GtkWidget *picked_widget, *event_widget;
graphene_rect_t rect;
+1 -1
View File
@@ -56,7 +56,7 @@ void gcal_month_view_row_update_selection (GcalMonthViewRo
gboolean gcal_month_view_row_focus_underlying_cell (GcalMonthViewRow *self,
GtkWidget *widget);
gboolean gcal_month_view_row_focus_adjacent_event (GcalMonthViewRow *self,
gboolean gcal_month_view_row_focus_overlaying_event (GcalMonthViewRow *self,
GtkWidget *widget);
gboolean gcal_month_view_row_get_ceiled_height (GcalMonthViewRow *self);
+1 -1
View File
@@ -1708,7 +1708,7 @@ gcal_month_view_focus (GtkWidget *widget,
return FALSE;
row = gtk_widget_get_ancestor (focused, GCAL_TYPE_MONTH_VIEW_ROW);
return gcal_month_view_row_focus_adjacent_event (GCAL_MONTH_VIEW_ROW (row), focused);
return gcal_month_view_row_focus_overlaying_event (GCAL_MONTH_VIEW_ROW (row), focused);
}
if (direction == GTK_DIR_TAB_FORWARD && GCAL_IS_EVENT_WIDGET (focused))