GNOME Bugzilla – Bug 561539
Alignments miscalculate dimensions when allocated less than border & padding
Last modified: 2008-11-24 19:28:13 UTC
I get warnings from gtk_widget_size_allocate() in a dynamically generated list of alignments in a box (containing tables with other widgets). I am not exactly sure why, and it was not very simple to reproduce, but the simple patch that I am attaching fixes the warnings and seems to be by the book (gtk_button_size_allocate() uses the MAX() macro to ensure positive values, alignment falls short here).
Created attachment 123045 [details] [review] simple patch
Looks fine. It is what gtk_widget_size_allocate will do anyway, and gets rid of the warning. Please commit to both branches
Done. Thanks.