[gnome-calendar] month-view: fix last day+1 selectable
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] month-view: fix last day+1 selectable
- Date: Fri, 11 Mar 2016 14:06:11 +0000 (UTC)
commit 97704c339064dab260c1611a2f1495c42f0e6aba
Author: fosero <fosero users noreply github com>
Date: Fri Mar 11 14:17:40 2016 +0100
month-view: fix last day+1 selectable
It was possible to select the cell after the last day of the month by
clicking on it.
The days variable is the first day of the month cell + the number of
days in the month, so only cells less than this cell should be
considered actual month days.
https://bugzilla.gnome.org/show_bug.cgi?id=763495
src/gcal-month-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index b964115..10a8d1c 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -1738,7 +1738,7 @@ gcal_month_view_button_press (GtkWidget *widget,
clicked_cell = real_cell (clicked_cell, priv->k);
- if (clicked_cell >= priv->days_delay && clicked_cell <= days)
+ if (clicked_cell >= priv->days_delay && clicked_cell < days)
{
priv->start_mark_cell = clicked_cell;
priv->keyboard_cell = clicked_cell;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]