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:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user