[gnome-calendar/ui-rewrite] week-view: another integer rounding issue



commit 65accb78808ed4de043ff3bcfc9cb9d104fc9a4a
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sun Nov 23 19:16:06 2014 -0200

    week-view: another integer rounding issue
    
    Hopefully, this is the last one on the integer rounding series.

 src/gcal-week-view.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-week-view.c b/src/gcal-week-view.c
index 5f9e758..a2e0ff8 100644
--- a/src/gcal-week-view.c
+++ b/src/gcal-week-view.c
@@ -924,8 +924,8 @@ gcal_week_view_size_allocate (GtkWidget     *widget,
     }
 
   sidebar_width = get_sidebar_width (widget);
-  horizontal_block = (allocation->width - sidebar_width) / 7;
-  vertical_block = gdk_window_get_height (priv->grid_window) / 24;
+  horizontal_block = (allocation->width - sidebar_width) / 7.0;
+  vertical_block = gdk_window_get_height (priv->grid_window) / 24.0;
 
   for (i = 0; i < 7; i++)
     {


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