[gtk+] widget: Don't show widget resizes in the inspector



commit d6ac55102e3e3971d84d6d9d17b7efe8be3b6549
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Apr 19 23:32:26 2016 -0400

    widget: Don't show widget resizes in the inspector
    
    Avoiding this sort of visual debugging in the inspector
    is the main reason we have per-display debug flags now.

 gtk/gtkwidget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 1e87e10..ac86d9d 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -5959,7 +5959,7 @@ gtk_widget_size_allocate_with_baseline (GtkWidget     *widget,
   gtk_widget_push_verify_invariants (widget);
 
 #ifdef G_ENABLE_DEBUG
-  if (GTK_DEBUG_CHECK (RESIZE))
+  if (GTK_DISPLAY_DEBUG_CHECK (gtk_widget_get_display (widget), RESIZE))
     {
       priv->highlight_resize = TRUE;
       gtk_widget_queue_draw (widget);


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