mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-02 08:50:28 +00:00
gtktreeview: Fix horizontal grid lines
The clipping was wrong so it was not drawing grid lines outside the visible area, which broke due to the pixel cache.
This commit is contained in:
parent
1442299b48
commit
a1e4ba0dd4
@ -5293,14 +5293,14 @@ G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
|
||||
if (draw_hgrid_lines)
|
||||
{
|
||||
if (background_area.y > 0)
|
||||
if (background_area.y >= clip.y)
|
||||
gtk_tree_view_draw_line (tree_view, cr,
|
||||
GTK_TREE_VIEW_GRID_LINE,
|
||||
background_area.x, background_area.y,
|
||||
background_area.x + background_area.width,
|
||||
background_area.y);
|
||||
|
||||
if (y_offset + max_height >= clip.height)
|
||||
if (background_area.y + max_height < clip.y + clip.height)
|
||||
gtk_tree_view_draw_line (tree_view, cr,
|
||||
GTK_TREE_VIEW_GRID_LINE,
|
||||
background_area.x, background_area.y + max_height,
|
||||
|
Loading…
Reference in New Issue
Block a user