[gtk/listview-dnd] listbase: Fix copy/paste error
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/listview-dnd] listbase: Fix copy/paste error
- Date: Fri, 19 Jun 2020 14:01:41 +0000 (UTC)
commit 4b03feebf05c41f16bea0ad21d1413c880860943
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 ddc838e430..a82649cb0d 100644
--- a/gtk/gtklistbase.c
+++ b/gtk/gtklistbase.c
@@ -240,7 +240,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]