[gnome-shell/wip/fmuellner/notification-redux: 109/128] calendar: Simplify NotificationMessage



commit 84b3210fc0ec052933509fca944b63f277ed8247
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Feb 16 20:21:51 2015 +0100

    calendar: Simplify NotificationMessage

 js/ui/calendar.js |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/js/ui/calendar.js b/js/ui/calendar.js
index 6a640a8..07c29d4 100644
--- a/js/ui/calendar.js
+++ b/js/ui/calendar.js
@@ -1282,11 +1282,8 @@ const NotificationMessage = new Lang.Class({
     Extends: Message,
 
     _init: function(notification) {
-        let body = '';
-        if (notification.bannerBodyText)
-            body = notification.bannerBodyMarkup ? notification.bannerBodyText
-                                                 : GLib.markup_escape_text(notification.bannerBodyText, -1);
-        this.parent(notification.title, body);
+        this.setUseBodyMarkup(notification.bannerBodyMarkup);
+        this.parent(notification.title, notification.bannerBodyText);
 
         let gicon = null;
         if (notification._iconBin.child)


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