[gnome-shell] mount-operation: set a max-width for the question subject label
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] mount-operation: set a max-width for the question subject label
- Date: Wed, 1 Feb 2012 05:57:30 +0000 (UTC)
commit 8cbbb456f0e2cde4c2e27d35ff70b9a1d6b033e9
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Dec 1 15:40:11 2011 -0500
mount-operation: set a max-width for the question subject label
Since the string can be arbitrairly long.
https://bugzilla.gnome.org/show_bug.cgi?id=665322
data/theme/gnome-shell.css | 4 ++++
js/ui/shellMountOperation.js | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 33b0630..08ea888 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -1832,6 +1832,10 @@ StTooltip StLabel {
padding-bottom: 6px;
}
+.mount-question-dialog-subject {
+ max-width: 500px;
+}
+
.show-processes-dialog-subject:rtl,
.mount-question-dialog-subject:rtl {
padding-left: 0px;
diff --git a/js/ui/shellMountOperation.js b/js/ui/shellMountOperation.js
index 0fd149e..8a91d98 100644
--- a/js/ui/shellMountOperation.js
+++ b/js/ui/shellMountOperation.js
@@ -211,6 +211,8 @@ const ShellMountQuestionDialog = new Lang.Class({
{ y_align: St.Align.START });
this.subjectLabel = new St.Label({ style_class: 'mount-question-dialog-subject' });
+ this.subjectLabel.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
+ this.subjectLabel.clutter_text.line_wrap = true;
messageLayout.add(this.subjectLabel,
{ y_fill: false,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]