[gnome-shell] runDialog: Explicitly set horizontal alignment



commit fee2a07e08a97612ff2f806f85d56ba2fe3a0751
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Nov 18 13:53:27 2013 +0100

    runDialog: 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=712579

 js/ui/runDialog.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/runDialog.js b/js/ui/runDialog.js
index 7b753a7..36578d1 100644
--- a/js/ui/runDialog.js
+++ b/js/ui/runDialog.js
@@ -73,7 +73,9 @@ const RunDialog = new Lang.Class({
         let label = new St.Label({ style_class: 'run-dialog-label',
                                    text: _("Enter a Command") });
 
-        this.contentLayout.add(label, { y_align: St.Align.START });
+        this.contentLayout.add(label, { x_fill: false,
+                                        x_align: St.Align.START,
+                                        y_align: St.Align.START });
 
         let entry = new St.Entry({ style_class: 'run-dialog-entry',
                                    can_focus: true });
@@ -101,6 +103,8 @@ const RunDialog = new Lang.Class({
         this._errorMessage.clutter_text.line_wrap = true;
 
         this._errorBox.add(this._errorMessage, { expand: true,
+                                                 x_align: St.Align.START,
+                                                 x_fill: false,
                                                  y_align: St.Align.MIDDLE,
                                                  y_fill: false });
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]