[gnome-calendar] gcal-week-grid: Fix wrong x postion for events in RTL



commit 17bb7958463982cc72dfebaac086ae6b66bb6f6a
Author: Yosef Or Boczko <yoseforb gmail com>
Date:   Wed Oct 12 20:35:52 2022 +0300

    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>

 src/gui/views/gcal-week-grid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gui/views/gcal-week-grid.c b/src/gui/views/gcal-week-grid.c
index 50f721ef..45cd2e9c 100644
--- a/src/gui/views/gcal-week-grid.c
+++ b/src/gui/views/gcal-week-grid.c
@@ -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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]