Commit eb01ba85 authored by Timm Bäder's avatar Timm Bäder 👎

widget: Only print allocation warnings with --enable-debug

i.e. if G_ENABLE_CONSISTENCY_CHECKS is defined. This makes sense,
considering that this warning is about consistency of internal widget
parent 7fd9f2d3
......@@ -5981,12 +5981,14 @@ gtk_widget_size_allocate_with_baseline (GtkWidget *widget,
gtk_widget_queue_draw (widget);
if (gtk_widget_get_resize_needed (widget))
g_warning ("Allocating size to %s %p without calling gtk_widget_get_preferred_width/height(). "
"How does the code know the size to allocate?",
gtk_widget_get_name (widget), widget);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment