public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug AWT/16739] New: BorderLayout tries to set negative sizes
@ 2004-07-27  0:28 gcc-bugzilla at gcc dot gnu dot org
  2004-07-27  1:05 ` [Bug AWT/16739] " fitzsim at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2004-07-27  0:28 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <bug-16739-8724@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2005-10-16  1:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-27  0:28 [Bug AWT/16739] New: BorderLayout tries to set negative sizes gcc-bugzilla at gcc dot gnu dot org
2004-07-27  1:05 ` [Bug AWT/16739] " fitzsim at redhat dot com
2004-07-27  1:36 ` fitzsim at redhat dot com
2004-07-27  1:36 ` fitzsim at redhat dot com
2004-07-30 19:47 ` pinskia at gcc dot gnu dot org
     [not found] <bug-16739-8724@http.gcc.gnu.org/bugzilla/>
2005-10-16  1:56 ` [Bug awt/16739] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).