calendar: update current day highlight on day change

https://bugzilla.gnome.org/show_bug.cgi?id=742492
This commit is contained in:
Sebastian Keller 2015-01-07 00:35:13 +01:00 committed by Adel Gadllah
parent fd4f2f405f
commit fd635ba933

View File

@ -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) {