[gtk+] widget: Don't print underallocation warnings by default



commit ae8ffc775dabaa4b4050714348f8a5cece8a6a65
Author: Christoph Reiter <reiter christoph gmail com>
Date:   Tue Sep 27 11:39:04 2016 +0200

    widget: Don't print underallocation warnings by default
    
    See similar changes:
        https://git.gnome.org/browse/gtk+/commit/?id=1b15588732f2c4e3c59994a59613d4e5c963e283
        https://git.gnome.org/browse/gtk+/commit/?id=54fdcb3ffac3383432b379f3e16e8cb0086b8101
    
    https://bugzilla.gnome.org/show_bug.cgi?id=770388

 gtk/gtkwidget.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 29d8f9a..4b2f5c8 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -6037,7 +6037,7 @@ gtk_widget_size_allocate_with_baseline (GtkWidget     *widget,
       gtk_widget_get_preferred_width_for_height (widget, real_allocation.height, &min_width, &natural_width);
     }
 
-#ifdef G_ENABLE_DEBUG
+#ifdef G_ENABLE_CONSISTENCY_CHECKS
   if ((min_width > real_allocation.width || min_height > real_allocation.height) &&
       !GTK_IS_SCROLLABLE (widget))
     g_warning ("gtk_widget_size_allocate(): attempt to underallocate %s%s %s %p. "


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