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.
This commit is contained in:
Georges Basile Stavracas Neto 2019-02-07 17:53:20 -02:00
parent 65cbf4aa45
commit 1ee73ac357
No known key found for this signature in database
GPG Key ID: 886C17EE170D1385

View File

@ -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',