After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 561539 - Alignments miscalculate dimensions when allocated less than border & padding
Alignments miscalculate dimensions when allocated less than border & padding
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-11-19 16:13 UTC by Tristan Van Berkom
Modified: 2008-11-24 19:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
simple patch (780 bytes, patch)
2008-11-19 16:14 UTC, Tristan Van Berkom
none Details | Review

Description Tristan Van Berkom 2008-11-19 16:13:00 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).
Comment 1 Tristan Van Berkom 2008-11-19 16:14:27 UTC
Created attachment 123045 [details] [review]
simple patch
Comment 2 Matthias Clasen 2008-11-24 19:07:16 UTC
Looks fine. 
It is what gtk_widget_size_allocate will do anyway, and gets rid of the warning.
Please commit to both branches
Comment 3 Tristan Van Berkom 2008-11-24 19:28:13 UTC
Done. Thanks.