forked from AuroraMiddleware/gtk
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
This commit is contained in:
parent
9701b58c4e
commit
ae8ffc775d
@ -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. "
|
||||
|
Loading…
Reference in New Issue
Block a user