summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMat <mail@mathias.is>2022-08-10 04:09:48 +0300
committerMat <mail@mathias.is>2022-08-10 04:25:19 +0300
commit102ca838b85576bf575fc1104edcf9c7fcb8f6aa (patch)
tree3d6880f104881a6e6ad6be36e04dbc1a4434d6cd /gtk
parent378ae4fbc199342d76d86b8b83f0f190e9b4d6c2 (diff)
downloadgtk+-102ca838b85576bf575fc1104edcf9c7fcb8f6aa.tar.gz
treeview: Use widget coordinates where required
When a GtkTreeView scrolled horizontally, it was not possible to select rows outside the initial area due to an erroneous comparison between widget and bin window coordinates. Original change to widget coordinates occurred in commit a0de570e47228094f430fcade4e6f56eb75bd8f5
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtktreeview.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index dc152898fd..505cf92b99 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -2835,8 +2835,8 @@ gtk_tree_view_click_gesture_pressed (GtkGestureClick *gesture,
continue;
background_area.width = gtk_tree_view_column_get_width (candidate);
- if ((background_area.x > bin_x) ||
- (background_area.x + background_area.width <= bin_x))
+ if ((background_area.x > x) ||
+ (background_area.x + background_area.width <= x))
{
background_area.x += background_area.width;
continue;
@@ -2942,7 +2942,7 @@ gtk_tree_view_click_gesture_pressed (GtkGestureClick *gesture,
focus_cell = _gtk_tree_view_column_get_cell_at_pos (column,
&cell_area,
&background_area,
- bin_x, bin_y);
+ x, y);
if (focus_cell)
gtk_tree_view_column_focus_cell (column, focus_cell);