From e29db883669218730b6752aa92f0e2c6c274d367 Mon Sep 17 00:00:00 2001 From: Alexandre Franke Date: Fri, 18 May 2018 22:32:31 +0100 Subject: [PATCH] Display number of room members --- fractal-gtk/res/ui/main_window.ui | 21 +++++++++++++++++++-- fractal-gtk/src/appop/member.rs | 5 +++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/fractal-gtk/res/ui/main_window.ui b/fractal-gtk/res/ui/main_window.ui index f2f578d3..b6ebcce9 100644 --- a/fractal-gtk/res/ui/main_window.ui +++ b/fractal-gtk/res/ui/main_window.ui @@ -1196,10 +1196,27 @@ True members_popover - + True False - system-users-symbolic + horizontal + 6 + 6 + 6 + + + True + False + ? + + + + + True + False + system-users-symbolic + + diff --git a/fractal-gtk/src/appop/member.rs b/fractal-gtk/src/appop/member.rs index bdfca357..a702165d 100644 --- a/fractal-gtk/src/appop/member.rs +++ b/fractal-gtk/src/appop/member.rs @@ -92,6 +92,11 @@ impl AppOp { } else { self.more_members_btn.hide(); } + + let members_count = self.ui.builder + .get_object::("members_count") + .expect("Can't find member_count in ui file."); + members_count.set_text(&format!("{}", members.len())); } pub fn show_all_members(&self) {