projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e9a36f
)
gridview: Fix get_items_in_rect() selection
author
Corey Berla
<corey@berla.me>
Tue, 26 Jul 2022 00:16:56 +0000
(17:16 -0700)
committer
Corey Berla
<corey@berla.me>
Tue, 26 Jul 2022 00:54:44 +0000
(17:54 -0700)
last_row should be dependent on y + height, not y
gtk/gtkgridview.c
patch
|
blob
|
history
diff --git
a/gtk/gtkgridview.c
b/gtk/gtkgridview.c
index 869f4be206d1212e5a1f80373008e72f898a71c3..f555752310c8363ab19f3843e847b10e9faeb583 100644
(file)
--- a/
gtk/gtkgridview.c
+++ b/
gtk/gtkgridview.c
@@
-490,7
+490,7
@@
gtk_grid_view_get_items_in_rect (GtkListBase *base,
if (!gtk_grid_view_get_cell_at_y (self, rect->y, &first_row, NULL, NULL))
first_row = rect->y < 0 ? 0 : n_items - 1;
if (!gtk_grid_view_get_cell_at_y (self, rect->y + rect->height, &last_row, NULL, NULL))
- last_row = rect->y < 0 ? 0 : n_items - 1;
+ last_row = rect->y
+ rect->height
< 0 ? 0 : n_items - 1;
gtk_bitset_add_rectangle (result,
first_row + first_column,