From a8092c1782c4843d8c122bc2bf1d1f3a2b3f52be Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 27 Aug 2025 15:10:53 +0200 Subject: [PATCH] Frame: only warn when allocation is smaller than requested size When using Gtk Box packing and the box has a border-width set the child widget may get an allocation that is less that than the requested size. --- libs/widgets/frame.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/widgets/frame.cc b/libs/widgets/frame.cc index 1b3d25c289..fa840ab796 100644 --- a/libs/widgets/frame.cc +++ b/libs/widgets/frame.cc @@ -145,10 +145,10 @@ Frame::on_size_allocate (Allocation& alloc) Allocation child_alloc; if (alloc.get_width () < _min_size.width || alloc.get_height () < _min_size.height) { -#if 0 +#ifndef NDEBUG printf ("Frame::on_size_allocate %dx%d < %dx%d\n", alloc.get_width (), alloc.get_height (), _min_size.width, _min_size.height); -#endif return; +#endif } int pb_l, pb_t;