views/month-view-row: Replace "adjacent" with "underlying" cell

"Adjacent" is incorrect because we are focusing the cell that is
behind the event widget.

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 2f8d74e75f
commit 14869fa02b
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -1450,8 +1450,8 @@ gcal_month_view_row_update_selection (GcalMonthViewRow *self,
}
gboolean
gcal_month_view_row_focus_adjacent_cell (GcalMonthViewRow *self,
GtkWidget *widget)
gcal_month_view_row_focus_underlying_cell (GcalMonthViewRow *self,
GtkWidget *widget)
{
GtkWidget *cell;
g_autoptr (FocusEventData) data = NULL;
+1 -1
View File
@@ -53,7 +53,7 @@ GtkWidget* gcal_month_view_row_get_cell_at_x (GcalMonthViewR
void gcal_month_view_row_update_selection (GcalMonthViewRow *self,
GcalRange *selection_range);
gboolean gcal_month_view_row_focus_adjacent_cell (GcalMonthViewRow *self,
gboolean gcal_month_view_row_focus_underlying_cell (GcalMonthViewRow *self,
GtkWidget *widget);
gboolean gcal_month_view_row_focus_adjacent_event (GcalMonthViewRow *self,
+2 -2
View File
@@ -1696,7 +1696,7 @@ gcal_month_view_focus (GtkWidget *widget,
row = gtk_widget_get_ancestor (focused, GCAL_TYPE_MONTH_VIEW_ROW);
return gcal_month_view_row_focus_adjacent_cell (GCAL_MONTH_VIEW_ROW (row), focused);
return gcal_month_view_row_focus_underlying_cell (GCAL_MONTH_VIEW_ROW (row), focused);
}
else if (focused)
{
@@ -1717,7 +1717,7 @@ gcal_month_view_focus (GtkWidget *widget,
return TRUE;
row = gtk_widget_get_ancestor (focused, GCAL_TYPE_MONTH_VIEW_ROW);
return gcal_month_view_row_focus_adjacent_cell (GCAL_MONTH_VIEW_ROW (row), focused);
return gcal_month_view_row_focus_underlying_cell (GCAL_MONTH_VIEW_ROW (row), focused);
}
}