[gtk/wip/otte/for-master] listbase: Fix copy/paste error



commit ff3b03c5e25c0d1b8313ee50cedda006d19cc9dc
Author: Benjamin Otte <otte redhat com>
Date:   Fri Jun 19 15:50:10 2020 +0200

    listbase: Fix copy/paste error
    
    This could lead to "flickering" scroll behavior when scrolling
    horizontally.

 gtk/gtklistbase.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtklistbase.c b/gtk/gtklistbase.c
index 507e3c81fd..1ebebce933 100644
--- a/gtk/gtklistbase.c
+++ b/gtk/gtklistbase.c
@@ -239,7 +239,7 @@ gtk_list_base_adjustment_value_changed_cb (GtkAdjustment *adjustment,
   if (side_across == GTK_PACK_START)
     align_across = (double) (cell_area.x - area.x) / area.width;
   else
-    align_across = (double) (cell_area.x + cell_area.height - area.x) / area.width;
+    align_across = (double) (cell_area.x + cell_area.width - area.x) / area.width;
   if (side_along == GTK_PACK_START)
     align_along = (double) (cell_area.y - area.y) / area.height;
   else


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