[polari/wip/raresv/popoverRebasedOnTracker] the user nickname label in the popover and the real name label now have both the ellipsize and max-w



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]