[gnome-calendar] month-view: style cleaning
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] month-view: style cleaning
- Date: Thu, 4 Dec 2014 22:43:50 +0000 (UTC)
commit 260237bc85ba7a665887f60c497492fb470e84a4
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Fri Nov 21 11:12:03 2014 -0500
month-view: style cleaning
src/gcal-month-view.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index 79983a8..b332d65 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -470,8 +470,8 @@ gcal_month_view_size_allocate (GtkWidget *widget,
child = (GcalViewChild*) l->data;
- pos_x = horizontal_block * ((i + priv->days_delay) % 7 );
- pos_y = vertical_block * (((i + priv->days_delay + 7 * february_gap ) / 7 ) + lines_gap_for_5);
+ pos_x = horizontal_block * ((i + priv->days_delay) % 7);
+ pos_y = vertical_block * (((i + priv->days_delay + 7 * february_gap) / 7) + lines_gap_for_5);
if ((! gtk_widget_get_visible (child->widget))
&& (! child->hidden))
@@ -800,7 +800,7 @@ gcal_month_view_button_press (GtkWidget *widget,
v_block = (height - start_grid_y) / 6.0;
- priv->clicked_cell = 7 * ( floor ( (y - (lines_gap_for_5 * v_block)) / (v_block) )) + floor (x / (width /
7));
+ priv->clicked_cell = 7 * (floor ((y - (lines_gap_for_5 * v_block)) / (v_block))) + floor (x / (width /
7));
if (priv->clicked_cell < days)
{
@@ -858,7 +858,7 @@ gcal_month_view_motion_notify_event (GtkWidget *widget,
v_block = (height - start_grid_y) / 6.0;
/* caching value */
- new_end_cell = 7 * ( floor ( (y - (lines_gap_for_5 * v_block)) / (v_block) )) + floor (event->x / (width
/ 7));
+ new_end_cell = 7 * (floor ((y - (lines_gap_for_5 * v_block)) / (v_block))) + floor (event->x / (width /
7));
if (priv->end_mark_cell != new_end_cell)
{
gtk_widget_queue_draw (widget);
@@ -920,7 +920,7 @@ gcal_month_view_button_release (GtkWidget *widget,
v_block = (height - start_grid_y) / 6.0;
- released = 7 * ( floor ( (y - (lines_gap_for_5 * v_block)) / (v_block) )) +
+ released = 7 * (floor ((y - (lines_gap_for_5 * v_block)) / (v_block))) +
floor (event->x / (width / 7));
/* whether the event is out of the days of the month */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]