[gnome-calendar] month-view: fixed wrong day selection
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] month-view: fixed wrong day selection
- Date: Thu, 4 Dec 2014 22:33:32 +0000 (UTC)
commit 4287cc72ef8fcf0537d0bd292c7f88558f5465c3
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Oct 3 00:38:19 2014 -0300
month-view: fixed wrong day selection
src/gcal-month-view.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index 2663d67..530a2ad 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -788,9 +788,7 @@ gcal_month_view_button_press (GtkWidget *widget,
priv->clicked_cell = 7 * ( floor ( (y - (lines_gap_for_5 * v_block)) / (v_block) )) + floor (x / (width /
7));
- if (priv->clicked_cell <
- icaltime_days_in_month (priv->date->month,
- priv->date->year))
+ if (priv->clicked_cell < days)
{
priv->start_mark_cell = priv->clicked_cell;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]