[gnome-shell] Calendar: force-rebuild the calendar when the events change



commit e117aa5297849dae113c4f01d23cd6d64054d083
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Wed Mar 12 18:50:37 2014 +0100

    Calendar: force-rebuild the calendar when the events change
    
    Don't overoptimize and skip the rebuild when the month is the same,
    as the calendar depends on the events too.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=726119

 js/ui/calendar.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/calendar.js b/js/ui/calendar.js
index 1058e58..4cd2850 100644
--- a/js/ui/calendar.js
+++ b/js/ui/calendar.js
@@ -420,8 +420,10 @@ const Calendar = new Lang.Class({
     setEventSource: function(eventSource) {
         this._eventSource = eventSource;
         this._eventSource.connect('changed', Lang.bind(this, function() {
+            this._rebuildCalendar();
             this._update();
         }));
+        this._rebuildCalendar();
         this._update();
     },
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]