From 8854279e2a93bf5018add10c77083659e673e721 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 1 Nov 2016 00:04:01 +0100 Subject: [PATCH] treeview: Clip before translating We want to clip invalidations to the bin window, not the treeview itself. --- gtk/gtktreeview.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index bc6aa74fa5..c0b1636c2b 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -4527,15 +4527,15 @@ static void gtk_tree_view_invalidate_bin_region (GtkTreeView *tree_view, cairo_region_t *region) { - cairo_region_translate (region, - - (gint) gtk_adjustment_get_value (tree_view->priv->hadjustment), - gtk_tree_view_get_effective_header_height (tree_view)); - cairo_region_intersect_rectangle (region, &(GdkRectangle) { 0, 0, gdk_window_get_width (tree_view->priv->bin_window), gdk_window_get_height (tree_view->priv->bin_window)}); + cairo_region_translate (region, + - (gint) gtk_adjustment_get_value (tree_view->priv->hadjustment), + gtk_tree_view_get_effective_header_height (tree_view)); + gtk_widget_queue_draw_region (GTK_WIDGET (tree_view), region); cairo_region_destroy (region);