[gnome-shell] MessageTray: change height in chat notification to have more context.
- From: Allan Day <allanday src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] MessageTray: change height in chat notification to have more context.
- Date: Tue, 6 Nov 2012 21:53:53 +0000 (UTC)
commit 09b738045c52089d7ef010dc2550e44d805e77ed
Author: Carlos Soriano SÃnchez <carlos soriano89 gmail com>
Date: Mon Nov 5 00:06:47 2012 +0100
MessageTray: change height in chat notification to have more context.
https://bugzilla.gnome.org/show_bug.cgi?id=665255
data/theme/gnome-shell.css | 4 ++++
js/ui/components/telepathyClient.js | 1 +
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 8438480..7a0a988 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -1432,6 +1432,10 @@ StScrollBar StButton#vhandle:active {
padding-right: 4px;
}
+.chat-notification-scrollview{
+ max-height: 22em;
+}
+
.subscription-message {
font-style: italic;
}
diff --git a/js/ui/components/telepathyClient.js b/js/ui/components/telepathyClient.js
index 4268253..281a606 100644
--- a/js/ui/components/telepathyClient.js
+++ b/js/ui/components/telepathyClient.js
@@ -779,6 +779,7 @@ const ChatNotification = new Lang.Class({
// force a scroll to the bottom if things change while we were at the
// bottom
this._oldMaxScrollValue = this._scrollArea.vscroll.adjustment.value;
+ this._scrollArea.add_style_class_name('chat-notification-scrollview');
this._scrollArea.vscroll.adjustment.connect('changed', Lang.bind(this, function(adjustment) {
if (adjustment.value == this._oldMaxScrollValue)
this.scrollTo(St.Side.BOTTOM);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]