[gnome-shell] calendar: Only allow closing events on the current day
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] calendar: Only allow closing events on the current day
- Date: Thu, 12 Mar 2015 16:33:26 +0000 (UTC)
commit 01b51cd081b15e5ecedefccc249ec4b984026ba1
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Mar 11 23:06:50 2015 +0100
calendar: Only allow closing events on the current day
The design calls for differentiating between dismissable reminders
and permanent events, based on whether the selected date is "today"
or some other day.
https://bugzilla.gnome.org/show_bug.cgi?id=744927
js/ui/calendar.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/calendar.js b/js/ui/calendar.js
index 2f1fac0..b79045e 100644
--- a/js/ui/calendar.js
+++ b/js/ui/calendar.js
@@ -1198,6 +1198,10 @@ const EventMessage = new Lang.Class({
title = title + ELLIPSIS_CHAR;
}
return title;
+ },
+
+ canClose: function() {
+ return _isToday(this._date);
}
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]