From 37fb5e84920362c324ec7694498f2f68e2fd6a18 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Fri, 6 Oct 2017 21:21:49 -0300 Subject: [PATCH] month-view: fix event positioning on RTL locales We have to pick the mirrored column index on RTL locales. --- src/views/gcal-month-view.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/gcal-month-view.c b/src/views/gcal-month-view.c index a397cff1..6d809ae2 100644 --- a/src/views/gcal-month-view.c +++ b/src/views/gcal-month-view.c @@ -1722,7 +1722,11 @@ gcal_month_view_size_allocate (GtkWidget *widget, j += self->days_delay; i = 7 * ((j - 1) / 7) + 6 * self->k + sw * ((j - 1) % 7); - month_cell = self->month_cell[i / 7][i % 7]; + if (self->k) + month_cell = self->month_cell[i / 7][6 - i % 7]; + else + month_cell = self->month_cell[i / 7][i % 7]; + gtk_widget_get_allocation (month_cell, &cell_alloc); l = (GList*) value;