[gnome-shell] [StTable] Align children to integral positions



commit 7bf748c579e8afb95fe0772bff2d7f78b9418fca
Author: Colin Walters <walters verbum org>
Date:   Tue May 25 11:21:07 2010 -0400

    [StTable] Align children to integral positions
    
    Like the other St widgets, ensure we position children at integrals.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=619623

 src/st/st-table.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/st/st-table.c b/src/st/st-table.c
index 5a2645f..2d832ab 100644
--- a/src/st/st-table.c
+++ b/src/st/st-table.c
@@ -234,12 +234,12 @@ st_table_homogeneous_allocate (ClutterActor          *self,
   col_spacing = priv->col_spacing;
   row_spacing = priv->row_spacing;
 
-  col_width = (int) (content_box->x2 - content_box->x1
-               - (col_spacing * (priv->n_cols - 1)))
-              / priv->n_cols + 0.5;
-  row_height = (int) (content_box->y2 - content_box->y1
-                - (row_spacing * (priv->n_rows - 1)))
-               / priv->n_rows + 0.5;
+  col_width = (int) ((content_box->x2 - content_box->x1
+                      - (col_spacing * (priv->n_cols - 1)))
+                     / priv->n_cols + 0.5);
+  row_height = (int) ((content_box->y2 - content_box->y1
+                      - (row_spacing * (priv->n_rows - 1)))
+                      / priv->n_rows + 0.5);
 
   children = st_container_get_children_list (ST_CONTAINER (self));
   for (list = children; list; list = list->next)



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