[gnome-shell] calendar: Refresh calendar when ignored events changes
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] calendar: Refresh calendar when ignored events changes
- Date: Fri, 8 Jul 2016 13:02:31 +0000 (UTC)
commit 3d77dd8f5120a2080600e2e5de4a5a52dff1daa5
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Jul 8 01:08:46 2016 +0200
calendar: Refresh calendar when ignored events changes
The last patch fixed marking days in the calendar where all
events are ignored, but it doesn't pick up the change when
an event is hidden. Emit an appropriate change notification
to fix this issue.
https://bugzilla.gnome.org/show_bug.cgi?id=768538
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 110ff7b..7958e9d 100644
--- a/js/ui/calendar.js
+++ b/js/ui/calendar.js
@@ -311,9 +311,13 @@ const DBusEventSource = new Lang.Class({
},
ignoreEvent: function(event) {
+ if (this._ignoredEvents.get(event.id))
+ return;
+
this._ignoredEvents.set(event.id, true);
let savedState = new GLib.Variant('as', [...this._ignoredEvents.keys()]);
global.set_persistent_state('ignored_events', savedState);
+ this.emit('changed');
},
requestRange: function(begin, end) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]