[gnome-contacts: 10/13] Fix coordinates in size_allocate



commit e7131454544952216536259a2c8764b758d6a184
Author: Alexander Larsson <alexl redhat com>
Date:   Mon May 21 14:34:49 2012 +0200

    Fix coordinates in size_allocate
    
    We should not add allocation.x/y to the child, as we are a
    window widget.

 egg-list-box.vala |    6 +++---
 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 ()) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]