From 8cbbb456f0e2cde4c2e27d35ff70b9a1d6b033e9 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Thu, 1 Dec 2011 15:40:11 -0500 Subject: [PATCH] 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(+) diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css index 33b063047..08ea888d5 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 0fd149e3c..8a91d9897 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,