[gnome-shell/gbsneto/fix-long-user-names: 2/3] system: Ellipsize user name



commit 1ee73ac3577b90d42456104bbe98e815002347ba
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Feb 7 17:53:20 2019 -0200

    system: Ellipsize user name
    
    For the same reasons explained in the previous commit,
    ellipsize the user name in UserWidget as well. This
    covers a various other places like GDM.

 js/ui/userWidget.js | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/js/ui/userWidget.js b/js/ui/userWidget.js
index a702ad842..f9a266826 100644
--- a/js/ui/userWidget.js
+++ b/js/ui/userWidget.js
@@ -7,6 +7,7 @@ const AccountsService = imports.gi.AccountsService;
 const GLib = imports.gi.GLib;
 const Gio = imports.gi.Gio;
 const GObject = imports.gi.GObject;
+const Pango = imports.gi.Pango;
 const St = imports.gi.St;
 
 const Params = imports.misc.params;
@@ -72,6 +73,7 @@ class UserWidgetLabel extends St.Widget {
 
         this._realNameLabel = new St.Label({ style_class: 'user-widget-label',
                                              y_align: Clutter.ActorAlign.CENTER });
+        this._realNameLabel.clutter_text.ellipsize = Pango.EllipsizeMode.END;
         this.add_child(this._realNameLabel);
 
         this._userNameLabel = new St.Label({ style_class: 'user-widget-label',


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