[gnome-shell] [lookingGlass] Fix scrolling in errorLog
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] [lookingGlass] Fix scrolling in errorLog
- Date: Thu, 3 Jun 2010 16:50:23 +0000 (UTC)
commit 35f27ae150edebd1ab7cecfd7b34c1441d524c41
Author: Colin Walters <walters verbum org>
Date: Thu Jun 3 12:47:15 2010 -0400
[lookingGlass] Fix scrolling in errorLog
When setting line_wrap, we need to unset the ellipsization, otherwise
ClutterText won't do what we want.
js/ui/lookingGlass.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/lookingGlass.js b/js/ui/lookingGlass.js
index 2a175fe..84efc71 100644
--- a/js/ui/lookingGlass.js
+++ b/js/ui/lookingGlass.js
@@ -431,6 +431,11 @@ ErrorLog.prototype = {
this.actor = new St.BoxLayout();
this.text = new St.Label();
this.actor.add(this.text);
+ // We need to override StLabel's default ellipsization when
+ // using line_wrap; otherwise ClutterText's layout is going
+ // to constrain both the width and height, which prevents
+ // scrolling.
+ this.text.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
this.text.clutter_text.line_wrap = true;
this.actor.connect('notify::mapped', Lang.bind(this, this._renderText));
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]