This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug AWT/16739] New: BorderLayout tries to set negative sizes


In Acunia's layout.CardLayoutOverlay test, the following gtk assertion
failures are reported:

(:12329): Gtk-CRITICAL **: file gtkwidget.c: line 5140
(gtk_widget_set_size_request): assertion `height >= -1' failed

This started occuring after calls to the deprecated
gtk_widget_set_usize() were replaced with gtk_widget_set_size_request().

The problem seems to be that in certain situations, when BorderLayout
calculates component sizes, it produces negative values.  This can
happen if the parent container's size has not been set yet.  We were
not seeing this before because gtk_widget_set_usize() doesn't have
such an assertion.  BorderLayout should never try to set negative
sizes for components.

I already have a fix for this which I'll be committing soon.
------- Additional Comments From djee at redhat dot com  2004-02-26 14:32 -------
Fixed in java-gui-branch.  Please verify.
------- Additional Comments From fitzsim at redhat dot com  2004-05-18 18:18 -------
Verified; fixed on java-gui-branch.


-- 
           Summary: BorderLayout tries to set negative sizes
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P1
         Component: AWT
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: djee at redhat dot com
                CC: djee at redhat dot com,gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16739


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]