[gnome-shell] authPrompt: Explicitly set horizontal alignment
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] authPrompt: Explicitly set horizontal alignment
- Date: Wed, 11 Dec 2013 20:39:40 +0000 (UTC)
commit 49189e0e436e93a3494157697e490ad4540918f2
Author: Yosef Or Boczko <yoseforb gmail com>
Date: Wed Dec 11 22:36:15 2013 +0200
authPrompt: Explicitly set horizontal alignment
When set to fill, the label will always end up left-aligned, which
is only correct in LTR locales. Set the alignment explicitly to
work in both RTL and LTR locales.
https://bugzilla.gnome.org/show_bug.cgi?id=712638
js/gdm/authPrompt.js | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js
index 996b363..7a3cf0a 100644
--- a/js/gdm/authPrompt.js
+++ b/js/gdm/authPrompt.js
@@ -93,7 +93,7 @@ const AuthPrompt = new Lang.Class({
this.actor.add(this._label,
{ expand: true,
- x_fill: true,
+ x_fill: false,
y_fill: true,
x_align: St.Align.START });
this._entry = new St.Entry({ style_class: 'login-dialog-prompt-entry',
@@ -111,7 +111,7 @@ const AuthPrompt = new Lang.Class({
this._message = new St.Label({ opacity: 0,
styleClass: 'login-dialog-message' });
this._message.clutter_text.line_wrap = true;
- this.actor.add(this._message, { x_fill: true, y_align: St.Align.START });
+ this.actor.add(this._message, { x_fill: false, x_align: St.Align.START, y_align: St.Align.START });
this._buttonBox = new St.BoxLayout({ style_class: 'login-dialog-button-box',
vertical: false });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]