[gnome-calendar/wip/pandusonu/week-view] window: fix today button sensitivitiness on week view
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar/wip/pandusonu/week-view] window: fix today button sensitivitiness on week view
- Date: Thu, 8 Dec 2016 22:34:02 +0000 (UTC)
commit 23010afa1a7f74b304e8ec177201e15c53c8c4f6
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Dec 8 19:20:45 2016 -0200
window: fix today button sensitivitiness on week view
src/gcal-window.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index d35be5a..7e5aa0a 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -466,8 +466,8 @@ update_today_button_sensitive (GcalWindow *window)
break;
case GCAL_WINDOW_VIEW_WEEK:
- /* TODO: determine when the today button would be sensitive on week view */
- sensitive = TRUE;
+ sensitive = window->active_date->year != window->current_date->year ||
+ icaltime_week_number (*window->active_date) != icaltime_week_number
(*window->current_date);
break;
case GCAL_WINDOW_VIEW_MONTH:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]