[polari/wip/raresv/popoverRebasedOnTracker] the user nickname label in the popover and the real name label now have both the ellipsize and max-w
- From: Rares Visalom <raresvisalom src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/raresv/popoverRebasedOnTracker] the user nickname label in the popover and the real name label now have both the ellipsize and max-w
- Date: Wed, 13 Jul 2016 12:07:50 +0000 (UTC)
commit 5534c7b0447c5984e63a7bf3ddc186d6c43b26f4
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]