[egg-list-box] flow-box: fix margin issues



commit 610067298101999284eb7ee25f3fb4eca2eb72dd
Author: Jonh Wendell <jonh wendell oiwifi com br>
Date:   Tue May 7 16:06:10 2013 -0300

    flow-box: fix margin issues
    
    https://bugzilla.gnome.org/show_bug.cgi?id=698978

 egg-flow-box.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/egg-flow-box.c b/egg-flow-box.c
index a4d4766..68b324c 100644
--- a/egg-flow-box.c
+++ b/egg-flow-box.c
@@ -940,15 +940,15 @@ egg_flow_box_real_size_allocate (GtkWidget     *widget,
       /* Do the actual allocation */
       if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
         {
-          child_allocation.x = allocation->x + item_offset;
-          child_allocation.y = allocation->y + line_offset;
+          child_allocation.x = item_offset;
+          child_allocation.y = line_offset;
           child_allocation.width = this_item_size;
           child_allocation.height = this_line_size;
         }
       else /* GTK_ORIENTATION_VERTICAL */
         {
-          child_allocation.x = allocation->x + line_offset;
-          child_allocation.y = allocation->y + item_offset;
+          child_allocation.x = line_offset;
+          child_allocation.y = item_offset;
           child_allocation.width = this_line_size;
           child_allocation.height = this_item_size;
         }


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