calendar: fix title at shell startup

Make sure the message list section is set to the current date
when opening the menu, otherwise the calendar might skip
the selected-date-changed event (because the day did not change)
which would leave the message list with an uninitialized date.

https://bugzilla.gnome.org/show_bug.cgi?id=745412
This commit is contained in:
Giovanni Campagna 2015-03-02 00:30:20 -08:00
parent 3b914ed4f7
commit f015f4574f

View File

@ -365,6 +365,7 @@ const DateMenuButton = new Lang.Class({
let now = new Date(); let now = new Date();
this._calendar.setDate(now); this._calendar.setDate(now);
this._date.setDate(now); this._date.setDate(now);
this._messageList.setDate(now);
} }
// Block notification banners while the menu is open // Block notification banners while the menu is open
Main.messageTray.bannerBlocked = isOpen; Main.messageTray.bannerBlocked = isOpen;