widget: Changing the scale does no longer require a redraw
authorBenjamin Otte <otte@redhat.com>
Fri, 7 Feb 2020 22:22:05 +0000 (23:22 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 9 Oct 2022 12:50:32 +0000 (08:50 -0400)
It doesn't require one generally anyway, because only the root can
change scale and when that happens the root will queue a redraw.

But even if the root doesn't queue a redraw, render nodes (the only
thing discarded by queue_draw()) are scale-independant.

gtk/gtkwidget.c

index 4d18cfcdf78be239600d60e4ec436025d04322ba..8ef948c304d2ac436e715d9b1632915525009157 100644 (file)
@@ -6742,8 +6742,6 @@ _gtk_widget_scale_changed (GtkWidget *widget)
 
   g_object_notify_by_pspec (G_OBJECT (widget), widget_props[PROP_SCALE_FACTOR]);
 
-  gtk_widget_queue_draw (widget);
-
   gtk_widget_forall (widget, (GtkCallback)_gtk_widget_scale_changed, NULL);
 }