[gnome-calendar] month-view: monitor click only on overflow indicator
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] month-view: monitor click only on overflow indicator
- Date: Mon, 22 Dec 2014 13:42:17 +0000 (UTC)
commit e2d4e52ec703892e5c3a479329b751751e1efb3f
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Sun Dec 21 00:56:24 2014 -0500
month-view: monitor click only on overflow indicator
src/gcal-month-view.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index 42297ac..bddaf0b 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -1442,7 +1442,7 @@ gcal_month_view_button_press (GtkWidget *widget,
if (j > priv->days_delay && j <= days)
priv->start_mark_cell = priv->clicked_cell;
- if (pressed_indicator)
+ if (pressed_indicator && g_hash_table_contains (priv->overflow_cells, GINT_TO_POINTER
(priv->clicked_cell)))
priv->pressed_overflow_indicator = priv->clicked_cell;
g_debug ("clicked is: %d", priv->clicked_cell);
@@ -1559,7 +1559,8 @@ gcal_month_view_button_release (GtkWidget *widget,
priv->end_mark_cell = released;
g_debug ("released button cell: %d", priv->end_mark_cell);
- if (priv->pressed_overflow_indicator != -1 && priv->start_mark_cell == priv->end_mark_cell)
+ if (priv->pressed_overflow_indicator != -1 && priv->start_mark_cell == priv->end_mark_cell &&
+ g_hash_table_contains (priv->overflow_cells, GINT_TO_POINTER (priv->pressed_overflow_indicator)))
{
priv->hovered_overflow_indicator = priv->pressed_overflow_indicator;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]