authPrompt: let PAM message wrap if longer than entry

Right now the whole authPrompt spreads out if a PAM message
comes in that longer than the entry.

This commit changes it to wrap instead, by forcing the
auth prompt to be a fixed width (slightly bigger than
the entry width was sized to previously).

https://bugzilla.gnome.org/show_bug.cgi?id=705037
This commit is contained in:
Ray Strode 2013-07-28 12:40:55 -04:00
parent 696efcdf20
commit f38d5a9c06
2 changed files with 2 additions and 4 deletions

View File

@ -2345,6 +2345,7 @@ StScrollBar StButton#vhandle:active {
padding-top: 24px; padding-top: 24px;
padding-bottom: 12px; padding-bottom: 12px;
spacing: 8px; spacing: 8px;
width: 23em;
} }
.login-dialog-prompt-label { .login-dialog-prompt-label {
@ -2352,10 +2353,6 @@ StScrollBar StButton#vhandle:active {
font-size: 14px; font-size: 14px;
} }
.login-dialog-prompt-entry {
width: 20em;
}
.login-dialog-session-list-button StIcon { .login-dialog-session-list-button StIcon {
icon-size: 1.25em; icon-size: 1.25em;
} }

View File

@ -96,6 +96,7 @@ const AuthPrompt = new Lang.Class({
this._entry.grab_key_focus(); this._entry.grab_key_focus();
this._message = new St.Label({ opacity: 0 }); this._message = new St.Label({ opacity: 0 });
this._message.clutter_text.line_wrap = true;
this.actor.add(this._message, { x_fill: true }); this.actor.add(this._message, { x_fill: true });
this._loginHint = new St.Label({ style_class: 'login-dialog-prompt-login-hint-message' }); this._loginHint = new St.Label({ style_class: 'login-dialog-prompt-login-hint-message' });