From df79f0231027cc9bf04c097f14884801d693c2d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 16 Jun 2018 20:13:07 +0200 Subject: [PATCH] paned: Don't unnecessarily redraw handle in size_allocate We size_allocate it after all, which will redraw it. --- gtk/gtkpaned.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/gtk/gtkpaned.c b/gtk/gtkpaned.c index 667e15a305..9fcf23e198 100644 --- a/gtk/gtkpaned.c +++ b/gtk/gtkpaned.c @@ -1226,7 +1226,6 @@ gtk_paned_size_allocate (GtkWidget *widget, { GtkAllocation child1_allocation; GtkAllocation child2_allocation; - GdkRectangle old_handle_pos; gint handle_size; gtk_widget_measure (priv->handle_widget, @@ -1235,8 +1234,6 @@ gtk_paned_size_allocate (GtkWidget *widget, NULL, &handle_size, NULL, NULL); - old_handle_pos = priv->handle_pos; - if (priv->orientation == GTK_ORIENTATION_HORIZONTAL) { gint child1_width, child2_width; @@ -1327,19 +1324,7 @@ gtk_paned_size_allocate (GtkWidget *widget, } gtk_widget_size_allocate (priv->handle_widget, &priv->handle_pos, -1); - - if (gtk_widget_get_mapped (widget) && - (old_handle_pos.x != priv->handle_pos.x || - old_handle_pos.y != priv->handle_pos.y || - old_handle_pos.width != priv->handle_pos.width || - old_handle_pos.height != priv->handle_pos.height)) - { - gtk_widget_queue_draw (widget); - } - - gtk_widget_size_allocate (priv->child1, &child1_allocation, -1); - gtk_widget_size_allocate (priv->child2, &child2_allocation, -1); } else