[gnome-shell] authPrompt.js: turn off the ellipsization of pam messages



commit 5b339c83714fd173298a83227be7c83f7975fc6d
Author: victoryang <tyang suse com>
Date:   Thu Oct 13 12:29:21 2016 +0800

    authPrompt.js: turn off the ellipsization of pam messages
    
    When the user gets long failure messages from pam, the authPrompt
    message label will clip the message and ellipsize with '…'.
    
    This commit turns off ellipsization from the label, so it will
    properly wrap.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764445

 js/gdm/authPrompt.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js
index 50c66fd..994c080 100644
--- a/js/gdm/authPrompt.js
+++ b/js/gdm/authPrompt.js
@@ -13,6 +13,7 @@ const Params = imports.misc.params;
 const ShellEntry = imports.ui.shellEntry;
 const Tweener = imports.ui.tweener;
 const UserWidget = imports.ui.userWidget;
+const Pango = imports.gi.Pango;
 
 const DEFAULT_BUTTON_WELL_ICON_SIZE = 16;
 const DEFAULT_BUTTON_WELL_ANIMATION_DELAY = 1.0;
@@ -113,6 +114,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._message.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
         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',


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