gcal-week-grid: Fix wrong x postion for events in RTL

Every event in RTL languages is drawn in the
wrong place. As a result the week view is totally unusable.

Fix this.

#817

Signed-off-by: Yosef Or Boczko <yoseforb@gmail.com>
This commit is contained in:
Yosef Or Boczko
2022-10-12 20:35:52 +03:00
parent 11a34a1d28
commit 17bb795846
+1 -1
View File
@@ -794,7 +794,7 @@ gcal_week_grid_size_allocate (GtkWidget *widget,
if (ltr)
x = column_width * i + offset + 1;
else
x = width - event_width - (column_width * i + offset + x + 1);
x = width - event_width - (column_width * i + offset + 1);
/* Setup the child position and size */
child_allocation.x = x;