[gnome-shell/wip/fmuellner/notification-redux+sass: 101/207] dateMenu: Stop hiding the events list
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/notification-redux+sass: 101/207] dateMenu: Stop hiding the events list
- Date: Tue, 17 Feb 2015 17:02:30 +0000 (UTC)
commit 3b48d191bd6610b75cc039947cd7630908cd61b1
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Feb 5 16:56:51 2015 +0100
dateMenu: Stop hiding the events list
As we start to show things other than calendar events in that location,
we should no longer hide it.
js/ui/dateMenu.js | 15 ++-------------
1 files changed, 2 insertions(+), 13 deletions(-)
---
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index 3399cf7..4d6bf0f 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -184,21 +184,10 @@ const DateMenuButton = new Lang.Class({
},
_updateEventsVisibility: function() {
- let visible = this._eventSource.hasCalendars;
- this._openCalendarItem.actor.visible = visible &&
+ this._openCalendarItem.actor.visible =
(this._getCalendarApp() != null);
- this._openClocksItem.actor.visible = visible &&
+ this._openClocksItem.actor.visible =
(this._getClockApp() != null);
- this._separator.visible = visible;
- this._messageList.actor.visible = visible;
- if (visible) {
- let alignment = 0.25;
- if (Clutter.get_default_text_direction() == Clutter.TextDirection.RTL)
- alignment = 1.0 - alignment;
- this.menu._arrowAlignment = alignment;
- } else {
- this.menu._arrowAlignment = 0.5;
- }
},
_getEventSource: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]