[gtk/wip/otte/bitset: 90/99] listbase: Don't do extra work



commit dcd426edf27dde0648e50067aec6a409e1c57b44
Author: Benjamin Otte <otte redhat com>
Date:   Wed Jun 24 04:46:53 2020 +0200

    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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]