[gnome-shell/wip/fmuellner/notification-redux+sass: 99/122] calendar: Highlight links in messages



commit db76f997d65459c3b412613f2acaaf4bf1ceb1e8
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Feb 16 20:05:15 2015 +0100

    calendar: Highlight links in messages

 js/ui/calendar.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/js/ui/calendar.js b/js/ui/calendar.js
index 36ebe0a..6beb5f0 100644
--- a/js/ui/calendar.js
+++ b/js/ui/calendar.js
@@ -1054,9 +1054,9 @@ const Message = new Lang.Class({
         this._closeButton = new St.Button({ child: closeIcon, visible: false });
         titleBox.add_actor(this._closeButton);
 
-        this.bodyLabel = new St.Label({ style_class: 'message-body', text: body,
-                                        x_expand: true });
-        contentBox.add_actor(this.bodyLabel);
+        this.bodyLabel = new URLHighlighter(body, false, false);
+        this.bodyLabel.actor.add_style_class_name('message-body');
+        contentBox.add_actor(this.bodyLabel.actor);
 
         this._closeButton.connect('clicked', Lang.bind(this,
             function() {


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