[polari/wip/fmuellner/combined-gsoc: 71/137] the user nickname label in the popover and the real name label now have both the ellipsize and max-w
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/fmuellner/combined-gsoc: 71/137] the user nickname label in the popover and the real name label now have both the ellipsize and max-w
- Date: Thu, 28 Jul 2016 16:21:24 +0000 (UTC)
commit af171f6c41c9a99a39dfdb36c0cb1a8499611173
Author: raresv <rares visalom gmail com>
Date: Wed Jul 13 15:07:15 2016 +0300
the user nickname label in the popover and the real name label now have both the ellipsize and
max-width-chats properties set
src/userList.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/userList.js b/src/userList.js
index 90193cf..861154b 100644
--- a/src/userList.js
+++ b/src/userList.js
@@ -144,6 +144,7 @@ const UserDetails = new Lang.Class({
this.bind_property('isUserWatched', this._notificationLabel, 'visible',
GObject.BindingFlags.SYNC_CREATE);
this._fullnameLabel.ellipsize = Pango.EllipsizeMode.END;
+ this._fullnameLabel.max_width_chars = MAX_USERS_WIDTH_CHARS;
},
set user(user) {
@@ -343,7 +344,7 @@ const UserPopover = new Lang.Class({
this.parent(params);
- this._nickLabel = new Gtk.Label({ halign: Gtk.Align.START, margin_top: 0 });
+ this._nickLabel = new Gtk.Label({ halign: Gtk.Align.START, margin_top: 0, ellipsize:
Pango.EllipsizeMode.END, max_width_chars: MAX_USERS_WIDTH_CHARS });
this._statusLabel = new Gtk.Label({ halign: Gtk.Align.START, margin_bottom: 0, use_markup: true });
this._headervbox = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, halign: Gtk.Align.FILL });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]