From de4803bb217ddfd2c9cc355f5fabc2cde2a8cdf8 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 24 Jun 2020 04:46:53 +0200 Subject: [PATCH] listbase: Don't do extra work Scrolling causes a queue_resize() which will update the rubberband in size_allocate() and queue a draw. --- gtk/gtklistbase.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gtk/gtklistbase.c b/gtk/gtklistbase.c index 67f04e1ccc..c18db8a5dc 100644 --- a/gtk/gtklistbase.c +++ b/gtk/gtklistbase.c @@ -1263,15 +1263,6 @@ autoscroll_cb (GtkWidget *widget, delta_y = gtk_adjustment_get_value (priv->adjustment[GTK_ORIENTATION_VERTICAL]) - value; - if (priv->rubberband) - { - priv->rubberband->x2 += delta_x; - priv->rubberband->y2 += delta_y; - gtk_list_base_update_rubberband_selection (self); - } - - gtk_widget_queue_draw (GTK_WIDGET (self)); - if (delta_x != 0 || delta_y != 0) { return G_SOURCE_CONTINUE;