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:
@@ -794,7 +794,7 @@ gcal_week_grid_size_allocate (GtkWidget *widget,
|
|||||||
if (ltr)
|
if (ltr)
|
||||||
x = column_width * i + offset + 1;
|
x = column_width * i + offset + 1;
|
||||||
else
|
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 */
|
/* Setup the child position and size */
|
||||||
child_allocation.x = x;
|
child_allocation.x = x;
|
||||||
|
|||||||
Reference in New Issue
Block a user