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
This commit is contained in:
Cosimo Cecchi 2011-12-01 15:40:11 -05:00
parent dfd39461cf
commit 8cbbb456f0
2 changed files with 6 additions and 0 deletions

View File

@ -1832,6 +1832,10 @@ StTooltip StLabel {
padding-bottom: 6px; padding-bottom: 6px;
} }
.mount-question-dialog-subject {
max-width: 500px;
}
.show-processes-dialog-subject:rtl, .show-processes-dialog-subject:rtl,
.mount-question-dialog-subject:rtl { .mount-question-dialog-subject:rtl {
padding-left: 0px; padding-left: 0px;

View File

@ -211,6 +211,8 @@ const ShellMountQuestionDialog = new Lang.Class({
{ y_align: St.Align.START }); { y_align: St.Align.START });
this.subjectLabel = new St.Label({ style_class: 'mount-question-dialog-subject' }); 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, messageLayout.add(this.subjectLabel,
{ y_fill: false, { y_fill: false,