aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-paned/e-hpaned.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-08-31 05:54:48 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-08-31 05:54:48 +0800
commit61ec555e80b3e208c09a81bb2f2df530d947d360 (patch)
tree2c3d3ef3c052f07d1b741ca00eedc697fedcc54d /widgets/e-paned/e-hpaned.c
parent151fb928c3191fbf37d34e0f35ff242587fbb307 (diff)
downloadgsoc2013-evolution-61ec555e80b3e208c09a81bb2f2df530d947d360.tar
gsoc2013-evolution-61ec555e80b3e208c09a81bb2f2df530d947d360.tar.gz
gsoc2013-evolution-61ec555e80b3e208c09a81bb2f2df530d947d360.tar.bz2
gsoc2013-evolution-61ec555e80b3e208c09a81bb2f2df530d947d360.tar.lz
gsoc2013-evolution-61ec555e80b3e208c09a81bb2f2df530d947d360.tar.xz
gsoc2013-evolution-61ec555e80b3e208c09a81bb2f2df530d947d360.tar.zst
gsoc2013-evolution-61ec555e80b3e208c09a81bb2f2df530d947d360.zip
Ensure that the child's allocation height is >= 1.
2000-08-30 Federico Mena Quintero <federico@helixcode.com> * widgets/e-paned/e-vpaned.c (e_vpaned_size_allocate): Ensure that the child's allocation height is >= 1. * widgets/e-paned/e-hpaned.c (e_hpaned_size_allocate): Ensure that the child's allocation width is >= 1. 2000-08-30 Federico Mena Quintero <federico@helixcode.com> * ChangeLog: Started a ChangeLog here. svn path=/trunk/; revision=5123
Diffstat (limited to 'widgets/e-paned/e-hpaned.c')
-rw-r--r--widgets/e-paned/e-hpaned.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/widgets/e-paned/e-hpaned.c b/widgets/e-paned/e-hpaned.c
index 933fc1c057..5f2e451447 100644
--- a/widgets/e-paned/e-hpaned.c
+++ b/widgets/e-paned/e-hpaned.c
@@ -225,15 +225,18 @@ e_hpaned_size_allocate (GtkWidget *widget,
gdk_window_hide(paned->handle);
}
- child1_allocation.height = child2_allocation.height = MAX (1, (gint) allocation->height - border_width * 2);
- child1_allocation.width = paned->child1_real_size;
+ child1_allocation.height = child2_allocation.height = MAX (1, ((int) allocation->height -
+ border_width * 2));
+ child1_allocation.width = MAX (1, paned->child1_real_size);
child1_allocation.x = border_width;
child1_allocation.y = child2_allocation.y = border_width;
if (handle_shown)
- child2_allocation.x = child1_allocation.x + child1_allocation.width + paned->handle_width;
+ child2_allocation.x = (child1_allocation.x + (int) child1_allocation.width +
+ (int) paned->handle_width);
else
- child2_allocation.x = child1_allocation.x + child1_allocation.width;
+ child2_allocation.x = child1_allocation.x + (int) child1_allocation.width;
+
child2_allocation.width = MAX (1, (gint) allocation->width - child2_allocation.x - border_width);
/* Now allocate the childen, making sure, when resizing not to