From 1ee73ac3577b90d42456104bbe98e815002347ba Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Thu, 7 Feb 2019 17:53:20 -0200 Subject: [PATCH] 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',