[gnome-shell/wip/fmuellner/notification-redux+sass: 101/122] calendar: Message body is optional, so take this into account



commit 201f6f6131da7ae9f47ffac152028335628fc6ad
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Feb 16 20:19:04 2015 +0100

    calendar: Message body is optional, so take this into account

 js/ui/calendar.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/calendar.js b/js/ui/calendar.js
index 339fe16..3158020 100644
--- a/js/ui/calendar.js
+++ b/js/ui/calendar.js
@@ -1054,7 +1054,7 @@ const Message = new Lang.Class({
         this._closeButton = new St.Button({ child: closeIcon, visible: false });
         titleBox.add_actor(this._closeButton);
 
-        this.bodyLabel = new URLHighlighter(body, false, this._useBodyMarkup);
+        this.bodyLabel = new URLHighlighter(body || '', false, this._useBodyMarkup);
         this.bodyLabel.actor.add_style_class_name('message-body');
         contentBox.add_actor(this.bodyLabel.actor);
 


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