[gnome-calendar] week-view: another integer rounding issue
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] week-view: another integer rounding issue
- Date: Thu, 4 Dec 2014 22:44:15 +0000 (UTC)
commit 89b6c57eddb230f0ecbc9cf5af5692663a3753f7
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]