aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'widgets')
-rw-r--r--widgets/misc/ChangeLog5
-rw-r--r--widgets/misc/e-scroll-frame.c12
2 files changed, 11 insertions, 6 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index cb2fd56fe9..4ea43cd55d 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,8 @@
+2000-07-12 Christopher James Lahey <clahey@helixcode.com>
+
+ * e-scroll-frame.c: Tried rearranging the casts to try for a more
+ correct computation.
+
2000-07-08 Dan Winship <danw@helixcode.com>
* e-scroll-frame.c (e_scroll_frame_add): comment out true but
diff --git a/widgets/misc/e-scroll-frame.c b/widgets/misc/e-scroll-frame.c
index 09443bc0e2..8105b9dee8 100644
--- a/widgets/misc/e-scroll-frame.c
+++ b/widgets/misc/e-scroll-frame.c
@@ -613,8 +613,8 @@ compute_relative_allocation (GtkWidget *widget, GtkAllocation *allocation)
allocation->x = GTK_CONTAINER (widget)->border_width;
allocation->y = GTK_CONTAINER (widget)->border_width;
- allocation->width = MAX (1, (gint) widget->allocation.width - allocation->x * 2);
- allocation->height = MAX (1, (gint) widget->allocation.height - allocation->y * 2);
+ allocation->width = MAX (1, ((gint)widget->allocation.width) - (gint) allocation->x * 2);
+ allocation->height = MAX (1, ((gint)widget->allocation.height) - (gint) allocation->y * 2);
if (priv->vsb_visible) {
GtkRequisition vsb_requisition;
@@ -625,8 +625,8 @@ compute_relative_allocation (GtkWidget *widget, GtkAllocation *allocation)
|| priv->frame_placement == GTK_CORNER_BOTTOM_RIGHT)
allocation->x += vsb_requisition.width + priv->sb_spacing;
- allocation->width = MAX (1, ((gint) allocation->width
- - ((gint) vsb_requisition.width + priv->sb_spacing)));
+ allocation->width = MAX (1, ((gint) allocation->width)
+ - (gint) (vsb_requisition.width + priv->sb_spacing));
}
if (priv->hsb_visible) {
@@ -638,8 +638,8 @@ compute_relative_allocation (GtkWidget *widget, GtkAllocation *allocation)
|| priv->frame_placement == GTK_CORNER_BOTTOM_RIGHT)
allocation->y += hsb_requisition.height + priv->sb_spacing;
- allocation->height = MAX (1, ((gint) allocation->height
- - ((gint) hsb_requisition.height + priv->sb_spacing)));
+ allocation->height = MAX (1, ((gint) allocation->height)
+ - (gint) (hsb_requisition.height + priv->sb_spacing));
}
}
>-2/+2 * Bump portrevision and dependency on ImageMagickjosef2004-12-051-2/+2 * Remove references to mirror.ac.ukvs2004-07-261-2/+1 * Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-041-1/+1 * SIZEify.trevor2004-01-301-0/+1 * Before committing the previous BROKEN changes I carefully checked the statuskris2003-10-161-7/+1 * BROKEN on 5.x: does not compilekris2003-10-161-1/+7 * Chase lib version change of graphics/ImageMagick.nork2003-10-051-1/+2 * Fix build with gcc 3.3kris2003-08-172-6/+14 * PR:foxfair2003-03-231-1/+2 * Fix build for -CURRENT (GCC3).naddy2003-02-229-14/+175 * De-pkg-comment.knu2003-02-212-1/+1 * Fix build with bison 1.75.marcus2002-12-021-0/+10 * o Rollback PORTCOMMENT modifications while this feature's implementationlioux2002-11-112-2/+1 * Use PORTCOMMENT in the Makefile, and whack the pkg-comment.adamw2002-11-072-1/+2 * ${PERL} -> ${REINPLACE_CMD}dwcjr2002-09-021-1/+2 * Update MASTER_SITESlioux2002-08-301-1/+1