OtherUsersDialog: wrap the description label

In some languages (like Italian) it doesn't fit in one line.

https://bugzilla.gnome.org/show_bug.cgi?id=695002
This commit is contained in:
Giovanni Campagna 2013-03-02 16:55:13 +01:00
parent e6634c56d3
commit e54d095064

View File

@ -889,6 +889,7 @@ const UserMenuButton = new Lang.Class({
let descriptionLabel = new St.Label({ style_class: 'end-session-dialog-description'}); let descriptionLabel = new St.Label({ style_class: 'end-session-dialog-description'});
descriptionLabel.set_text(_("Shutting down might cause them to lose unsaved work.")); descriptionLabel.set_text(_("Shutting down might cause them to lose unsaved work."));
descriptionLabel.clutter_text.line_wrap = true;
dialog.contentLayout.add(descriptionLabel, { x_fill: true, dialog.contentLayout.add(descriptionLabel, { x_fill: true,
y_fill: true, y_fill: true,
y_align: St.Align.START }); y_align: St.Align.START });