summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2012-05-21 12:34:49 (GMT)
committerAlexander Larsson <alexl@redhat.com>2012-05-21 12:34:49 (GMT)
commite7131454544952216536259a2c8764b758d6a184 (patch)
tree9c014f072c4adfc77cb36ade39cd17bbb48534d7
parenta2d1672bf1baef4120f2c365320b42d472f2b350 (diff)
downloadegg-list-box-e7131454544952216536259a2c8764b758d6a184.tar.gz
egg-list-box-e7131454544952216536259a2c8764b758d6a184.tar.xz
Fix coordinates in size_allocate
We should not add allocation.x/y to the child, as we are a window widget.
-rw-r--r--egg-list-box.vala6
1 files changed, 3 insertions, 3 deletions
diff --git a/egg-list-box.vala b/egg-list-box.vala
index c56c4ad..c3525b0 100644
--- a/egg-list-box.vala
+++ b/egg-list-box.vala
@@ -946,11 +946,11 @@ public class Egg.ListBox : Container {
context.get_style ("focus-line-width", out focus_width,
"focus-padding", out focus_pad);
- child_allocation.x = allocation.x + focus_width + focus_pad;
- child_allocation.y = allocation.y;
+ child_allocation.x = 0 + focus_width + focus_pad;
+ child_allocation.y = 0;
child_allocation.width = allocation.width - 2 * (focus_width + focus_pad);
- separator_allocation.x = allocation.x;
+ separator_allocation.x = 0;
separator_allocation.width = allocation.width;
for (var iter = children.get_begin_iter (); !iter.is_end (); iter = iter.next ()) {