mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
dateMenu: Stop hiding the events list
The message list is not only a replacement for the calendar events list, it will also take over the notification summary from the message tray. As we start drawing events from other sources than calendars, hiding it based on whether or not any calendars have been set up is no longer appropriate, so always include it in the calendar drop-down now. https://bugzilla.gnome.org/show_bug.cgi?id=744817
This commit is contained in:
parent
efc0ec4740
commit
88c7039ebe
1 changed files with 0 additions and 9 deletions
|
|
@ -294,11 +294,6 @@ const DateMenuButton = new Lang.Class({
|
|||
this._sessionUpdated();
|
||||
},
|
||||
|
||||
_updateEventsVisibility: function() {
|
||||
let visible = this._eventSource.hasCalendars;
|
||||
this._messageList.actor.visible = visible;
|
||||
},
|
||||
|
||||
_getEventSource: function() {
|
||||
return new Calendar.DBusEventSource();
|
||||
},
|
||||
|
|
@ -311,9 +306,6 @@ const DateMenuButton = new Lang.Class({
|
|||
this._messageList.setEventSource(eventSource);
|
||||
|
||||
this._eventSource = eventSource;
|
||||
this._eventSource.connect('notify::has-calendars', Lang.bind(this, function() {
|
||||
this._updateEventsVisibility();
|
||||
}));
|
||||
},
|
||||
|
||||
_sessionUpdated: function() {
|
||||
|
|
@ -325,6 +317,5 @@ const DateMenuButton = new Lang.Class({
|
|||
eventSource = new Calendar.EmptyEventSource();
|
||||
}
|
||||
this._setEventSource(eventSource);
|
||||
this._updateEventsVisibility();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue