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

@ -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,