forked from AuroraMiddleware/gtk
Fixed problem with uints resulting in huge child allocations.
Mon Feb 1 15:14:56 1999 Owen Taylor <otaylor@redhat.com> * gtk/gtkoptionmenu.c (gtk_option_menu_size_allocate): Fixed problem with uints resulting in huge child allocations.
This commit is contained in:
parent
a512f0b841
commit
78ab1ea3fc
16
ChangeLog
16
ChangeLog
@ -1,11 +1,17 @@
|
||||
Mon Feb 1 15:14:56 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkoptionmenu.c (gtk_option_menu_size_allocate):
|
||||
Fixed problem with uints resulting in huge child
|
||||
allocations.
|
||||
|
||||
Mon Feb 1 14:54:28 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtklabel.c (gtk_label_expose): Cast uints
|
||||
to ints in geometry calculations. This should
|
||||
prevent FP exceptions on FreeBSD when quantities
|
||||
become negative. [ Actually, this is probably
|
||||
a workaround with a gcc bug with handling of
|
||||
bitfields, according to Ben Jackson <ben@ben.com> ]
|
||||
to ints in geometry calculations. This should
|
||||
prevent FP exceptions on FreeBSD when quantities
|
||||
become negative. [ Actually, this is probably
|
||||
a workaround with a gcc bug with handling of
|
||||
bitfields, according to Ben Jackson <ben@ben.com> ]
|
||||
|
||||
Mon Feb 1 13:35:14 GMT 1999 Tony Gale <gale@gtk.org>
|
||||
|
||||
|
@ -1,11 +1,17 @@
|
||||
Mon Feb 1 15:14:56 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkoptionmenu.c (gtk_option_menu_size_allocate):
|
||||
Fixed problem with uints resulting in huge child
|
||||
allocations.
|
||||
|
||||
Mon Feb 1 14:54:28 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtklabel.c (gtk_label_expose): Cast uints
|
||||
to ints in geometry calculations. This should
|
||||
prevent FP exceptions on FreeBSD when quantities
|
||||
become negative. [ Actually, this is probably
|
||||
a workaround with a gcc bug with handling of
|
||||
bitfields, according to Ben Jackson <ben@ben.com> ]
|
||||
to ints in geometry calculations. This should
|
||||
prevent FP exceptions on FreeBSD when quantities
|
||||
become negative. [ Actually, this is probably
|
||||
a workaround with a gcc bug with handling of
|
||||
bitfields, according to Ben Jackson <ben@ben.com> ]
|
||||
|
||||
Mon Feb 1 13:35:14 GMT 1999 Tony Gale <gale@gtk.org>
|
||||
|
||||
|
@ -1,11 +1,17 @@
|
||||
Mon Feb 1 15:14:56 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkoptionmenu.c (gtk_option_menu_size_allocate):
|
||||
Fixed problem with uints resulting in huge child
|
||||
allocations.
|
||||
|
||||
Mon Feb 1 14:54:28 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtklabel.c (gtk_label_expose): Cast uints
|
||||
to ints in geometry calculations. This should
|
||||
prevent FP exceptions on FreeBSD when quantities
|
||||
become negative. [ Actually, this is probably
|
||||
a workaround with a gcc bug with handling of
|
||||
bitfields, according to Ben Jackson <ben@ben.com> ]
|
||||
to ints in geometry calculations. This should
|
||||
prevent FP exceptions on FreeBSD when quantities
|
||||
become negative. [ Actually, this is probably
|
||||
a workaround with a gcc bug with handling of
|
||||
bitfields, according to Ben Jackson <ben@ben.com> ]
|
||||
|
||||
Mon Feb 1 13:35:14 GMT 1999 Tony Gale <gale@gtk.org>
|
||||
|
||||
|
@ -1,11 +1,17 @@
|
||||
Mon Feb 1 15:14:56 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkoptionmenu.c (gtk_option_menu_size_allocate):
|
||||
Fixed problem with uints resulting in huge child
|
||||
allocations.
|
||||
|
||||
Mon Feb 1 14:54:28 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtklabel.c (gtk_label_expose): Cast uints
|
||||
to ints in geometry calculations. This should
|
||||
prevent FP exceptions on FreeBSD when quantities
|
||||
become negative. [ Actually, this is probably
|
||||
a workaround with a gcc bug with handling of
|
||||
bitfields, according to Ben Jackson <ben@ben.com> ]
|
||||
to ints in geometry calculations. This should
|
||||
prevent FP exceptions on FreeBSD when quantities
|
||||
become negative. [ Actually, this is probably
|
||||
a workaround with a gcc bug with handling of
|
||||
bitfields, according to Ben Jackson <ben@ben.com> ]
|
||||
|
||||
Mon Feb 1 13:35:14 GMT 1999 Tony Gale <gale@gtk.org>
|
||||
|
||||
|
@ -1,11 +1,17 @@
|
||||
Mon Feb 1 15:14:56 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkoptionmenu.c (gtk_option_menu_size_allocate):
|
||||
Fixed problem with uints resulting in huge child
|
||||
allocations.
|
||||
|
||||
Mon Feb 1 14:54:28 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtklabel.c (gtk_label_expose): Cast uints
|
||||
to ints in geometry calculations. This should
|
||||
prevent FP exceptions on FreeBSD when quantities
|
||||
become negative. [ Actually, this is probably
|
||||
a workaround with a gcc bug with handling of
|
||||
bitfields, according to Ben Jackson <ben@ben.com> ]
|
||||
to ints in geometry calculations. This should
|
||||
prevent FP exceptions on FreeBSD when quantities
|
||||
become negative. [ Actually, this is probably
|
||||
a workaround with a gcc bug with handling of
|
||||
bitfields, according to Ben Jackson <ben@ben.com> ]
|
||||
|
||||
Mon Feb 1 13:35:14 GMT 1999 Tony Gale <gale@gtk.org>
|
||||
|
||||
|
@ -1,11 +1,17 @@
|
||||
Mon Feb 1 15:14:56 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkoptionmenu.c (gtk_option_menu_size_allocate):
|
||||
Fixed problem with uints resulting in huge child
|
||||
allocations.
|
||||
|
||||
Mon Feb 1 14:54:28 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtklabel.c (gtk_label_expose): Cast uints
|
||||
to ints in geometry calculations. This should
|
||||
prevent FP exceptions on FreeBSD when quantities
|
||||
become negative. [ Actually, this is probably
|
||||
a workaround with a gcc bug with handling of
|
||||
bitfields, according to Ben Jackson <ben@ben.com> ]
|
||||
to ints in geometry calculations. This should
|
||||
prevent FP exceptions on FreeBSD when quantities
|
||||
become negative. [ Actually, this is probably
|
||||
a workaround with a gcc bug with handling of
|
||||
bitfields, according to Ben Jackson <ben@ben.com> ]
|
||||
|
||||
Mon Feb 1 13:35:14 GMT 1999 Tony Gale <gale@gtk.org>
|
||||
|
||||
|
@ -1,11 +1,17 @@
|
||||
Mon Feb 1 15:14:56 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtkoptionmenu.c (gtk_option_menu_size_allocate):
|
||||
Fixed problem with uints resulting in huge child
|
||||
allocations.
|
||||
|
||||
Mon Feb 1 14:54:28 1999 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gtk/gtklabel.c (gtk_label_expose): Cast uints
|
||||
to ints in geometry calculations. This should
|
||||
prevent FP exceptions on FreeBSD when quantities
|
||||
become negative. [ Actually, this is probably
|
||||
a workaround with a gcc bug with handling of
|
||||
bitfields, according to Ben Jackson <ben@ben.com> ]
|
||||
to ints in geometry calculations. This should
|
||||
prevent FP exceptions on FreeBSD when quantities
|
||||
become negative. [ Actually, this is probably
|
||||
a workaround with a gcc bug with handling of
|
||||
bitfields, according to Ben Jackson <ben@ben.com> ]
|
||||
|
||||
Mon Feb 1 13:35:14 GMT 1999 Tony Gale <gale@gtk.org>
|
||||
|
||||
|
@ -307,11 +307,11 @@ gtk_option_menu_size_allocate (GtkWidget *widget,
|
||||
GTK_WIDGET (widget)->style->klass->xthickness) + 1;
|
||||
child_allocation.y = (GTK_CONTAINER (widget)->border_width +
|
||||
GTK_WIDGET (widget)->style->klass->ythickness) + 1;
|
||||
child_allocation.width = (allocation->width - child_allocation.x * 2 -
|
||||
OPTION_INDICATOR_WIDTH - OPTION_INDICATOR_SPACING * 5 -
|
||||
CHILD_LEFT_SPACING - CHILD_RIGHT_SPACING) - 2;
|
||||
child_allocation.height = (allocation->height - child_allocation.y * 2 -
|
||||
CHILD_TOP_SPACING - CHILD_BOTTOM_SPACING) - 2;
|
||||
child_allocation.width = MAX (1, (gint)allocation->width - child_allocation.x * 2 -
|
||||
OPTION_INDICATOR_WIDTH - OPTION_INDICATOR_SPACING * 5 -
|
||||
CHILD_LEFT_SPACING - CHILD_RIGHT_SPACING - 2);
|
||||
child_allocation.height = MAX (1, (gint)allocation->height - child_allocation.y * 2 -
|
||||
CHILD_TOP_SPACING - CHILD_BOTTOM_SPACING - 2);
|
||||
child_allocation.x += CHILD_LEFT_SPACING;
|
||||
child_allocation.y += CHILD_RIGHT_SPACING;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user