[gnome-shell/wip/new-notfications: 13/14] messageTray: Use a revealer when showing notification bodies as well
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/new-notfications: 13/14] messageTray: Use a revealer when showing notification bodies as well
- Date: Thu, 5 Dec 2013 22:02:37 +0000 (UTC)
commit 1a239822b689f3868c148ee2aed3df57802b719f
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 885c010..4281e03 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]