[gnome-calendar] month-view: fix event positioning on RTL locales
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] month-view: fix event positioning on RTL locales
- Date: Sat, 7 Oct 2017 00:23:25 +0000 (UTC)
commit 37fb5e84920362c324ec7694498f2f68e2fd6a18
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Oct 6 21:21:49 2017 -0300
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 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/views/gcal-month-view.c b/src/views/gcal-month-view.c
index a397cff..6d809ae 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]