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:
parent
65cbf4aa45
commit
1ee73ac357
@ -7,6 +7,7 @@ const AccountsService = imports.gi.AccountsService;
|
|||||||
const GLib = imports.gi.GLib;
|
const GLib = imports.gi.GLib;
|
||||||
const Gio = imports.gi.Gio;
|
const Gio = imports.gi.Gio;
|
||||||
const GObject = imports.gi.GObject;
|
const GObject = imports.gi.GObject;
|
||||||
|
const Pango = imports.gi.Pango;
|
||||||
const St = imports.gi.St;
|
const St = imports.gi.St;
|
||||||
|
|
||||||
const Params = imports.misc.params;
|
const Params = imports.misc.params;
|
||||||
@ -72,6 +73,7 @@ class UserWidgetLabel extends St.Widget {
|
|||||||
|
|
||||||
this._realNameLabel = new St.Label({ style_class: 'user-widget-label',
|
this._realNameLabel = new St.Label({ style_class: 'user-widget-label',
|
||||||
y_align: Clutter.ActorAlign.CENTER });
|
y_align: Clutter.ActorAlign.CENTER });
|
||||||
|
this._realNameLabel.clutter_text.ellipsize = Pango.EllipsizeMode.END;
|
||||||
this.add_child(this._realNameLabel);
|
this.add_child(this._realNameLabel);
|
||||||
|
|
||||||
this._userNameLabel = new St.Label({ style_class: 'user-widget-label',
|
this._userNameLabel = new St.Label({ style_class: 'user-widget-label',
|
||||||
|
Loading…
Reference in New Issue
Block a user