[gnome-shell/wip/new-notifications: 14/15] messageTray: Use a revealer when showing notification bodies as well



commit 51160bdf67be585d00caf7e2ac0337d40e2fe2cd
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Dec 5 02:23:13 2013 -0500

    messageTray: Use a revealer when showing notification bodies as well

 js/ui/messageTray.js |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/messageTray.js b/js/ui/messageTray.js
index 14a17dd..6330240 100644
--- a/js/ui/messageTray.js
+++ b/js/ui/messageTray.js
@@ -614,7 +614,8 @@ const Notification = new Lang.Class({
 
         this._bodyScrollArea = new St.ScrollView({ style_class: 'notification-scrollview',
                                                    hscrollbar_policy: Gtk.PolicyType.NEVER, });
-        this._titleBodyBox.add(this._bodyScrollArea);
+        this._bodyRevealer = new Revealer(this._bodyScrollArea);
+        this._titleBodyBox.add(this._bodyRevealer.actor);
         this.enableScrolling(true);
 
         this._bodyScrollable = new St.BoxLayout();
@@ -659,7 +660,7 @@ const Notification = new Lang.Class({
         this._titleLabel.clutter_text.line_wrap = this.expanded;
         this._bodyUrlHighlighter.actor.visible = this.expanded && this._bodyUrlHighlighter.hasText();
 
-        this._bodyScrollArea.visible = this.expanded && (this._bodyBin.child != null && 
this._bodyBin.child.visible);
+        this._bodyRevealer.visible = this.expanded && (this._bodyBin.child != null && 
this._bodyBin.child.visible);
     },
 
     // update:


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