[gtk/wip/otte/css: 1/17] widget: Changing the scale does no longer require a redraw



commit 176bea75679e2766b567f7783a5fe257aff529e5
Author: Benjamin Otte <otte redhat com>
Date:   Fri Feb 7 23:22:05 2020 +0100

    widget: Changing the scale does no longer require a redraw
    
    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 | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index a027c078f7..e78f9c88a5 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -6857,8 +6857,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);
 }
 


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