[gnome-shell/gnome-3-14] calendar: update current day highlight on day change



commit fd635ba933ca2c59c919e3f813af02fac2c91aae
Author: Sebastian Keller <sebastian-keller gmx de>
Date:   Wed Jan 7 00:35:13 2015 +0100

    calendar: update current day highlight on day change
    
    https://bugzilla.gnome.org/show_bug.cgi?id=742492

 js/ui/calendar.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/calendar.js b/js/ui/calendar.js
index bc2b42c..52f6cb5 100644
--- a/js/ui/calendar.js
+++ b/js/ui/calendar.js
@@ -603,6 +603,7 @@ const Calendar = new Lang.Class({
         beginDate.setHours(12);
 
         this._calendarBegin = new Date(beginDate);
+        this._markedAsToday = now;
 
         let year = beginDate.getYear();
 
@@ -694,7 +695,7 @@ const Calendar = new Lang.Class({
         else
             this._monthLabel.text = this._selectedDate.toLocaleFormat(this._headerFormat);
 
-        if (!this._calendarBegin || !_sameMonth(this._selectedDate, this._calendarBegin))
+        if (!this._calendarBegin || !_sameMonth(this._selectedDate, this._calendarBegin) || !_sameDay(now, 
this._markedAsToday))
             this._rebuildCalendar();
 
         this._buttons.forEach(Lang.bind(this, function(button) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]