month-view: fix event positioning on RTL locales

We have to pick the mirrored column index on RTL locales.
This commit is contained in:
Georges Basile Stavracas Neto
2017-10-06 21:23:05 -03:00
parent 1b2a1397f2
commit 37fb5e8492
+5 -1
View File
@@ -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;