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:
@@ -1450,8 +1450,8 @@ gcal_month_view_row_update_selection (GcalMonthViewRow *self,
|
|||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
gcal_month_view_row_focus_adjacent_cell (GcalMonthViewRow *self,
|
gcal_month_view_row_focus_underlying_cell (GcalMonthViewRow *self,
|
||||||
GtkWidget *widget)
|
GtkWidget *widget)
|
||||||
{
|
{
|
||||||
GtkWidget *cell;
|
GtkWidget *cell;
|
||||||
g_autoptr (FocusEventData) data = NULL;
|
g_autoptr (FocusEventData) data = NULL;
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ GtkWidget* gcal_month_view_row_get_cell_at_x (GcalMonthViewR
|
|||||||
void gcal_month_view_row_update_selection (GcalMonthViewRow *self,
|
void gcal_month_view_row_update_selection (GcalMonthViewRow *self,
|
||||||
GcalRange *selection_range);
|
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);
|
GtkWidget *widget);
|
||||||
|
|
||||||
gboolean gcal_month_view_row_focus_adjacent_event (GcalMonthViewRow *self,
|
gboolean gcal_month_view_row_focus_adjacent_event (GcalMonthViewRow *self,
|
||||||
|
|||||||
@@ -1696,7 +1696,7 @@ gcal_month_view_focus (GtkWidget *widget,
|
|||||||
|
|
||||||
row = gtk_widget_get_ancestor (focused, GCAL_TYPE_MONTH_VIEW_ROW);
|
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)
|
else if (focused)
|
||||||
{
|
{
|
||||||
@@ -1717,7 +1717,7 @@ gcal_month_view_focus (GtkWidget *widget,
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
row = gtk_widget_get_ancestor (focused, GCAL_TYPE_MONTH_VIEW_ROW);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user