[fractal] Ellipsize long display names in member list
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal] Ellipsize long display names in member list
- Date: Mon, 21 Jan 2019 13:32:54 +0000 (UTC)
commit efd64a7c07c89a70ce96ff9171bd773eb9b57d85
Author: Daniel GarcĂa Moreno <dani danigm net>
Date: Mon Jan 21 11:51:26 2019 +0100
Ellipsize long display names in member list
Fix #428
fractal-gtk/src/widgets/members_list.rs | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/fractal-gtk/src/widgets/members_list.rs b/fractal-gtk/src/widgets/members_list.rs
index dbc3b321..b55f3009 100644
--- a/fractal-gtk/src/widgets/members_list.rs
+++ b/fractal-gtk/src/widgets/members_list.rs
@@ -128,6 +128,8 @@ fn load_row_content(member: Member) -> gtk::Box {
let username = gtk::Label::new(Some(member.get_alias().as_str()));
let uid = gtk::Label::new(Some(member.uid.as_str()));
username.set_xalign(0.);
+ username.set_margin_end(5);
+ username.set_ellipsize(pango::EllipsizeMode::End);
uid.set_xalign(0.);
if let Some(style) = uid.get_style_context() {
style.add_class("small-font");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]