Commit e29db883 authored by Alexandre Franke's avatar Alexandre Franke

Display number of room members

parent 0cce5a47
......@@ -1196,10 +1196,27 @@
<property name="receives_default">True</property>
<property name="popover">members_popover</property>
<child>
<object class="GtkImage">
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">system-users-symbolic</property>
<property name="orientation">horizontal</property>
<property name="margin_left">6</property>
<property name="margin_right">6</property>
<property name="spacing">6</property>
<child>
<object class="GtkLabel" id="members_count">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">?</property>
</object>
</child>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">system-users-symbolic</property>
</object>
</child>
</object>
</child>
<accessibility>
......
......@@ -92,6 +92,11 @@ impl AppOp {
} else {
self.more_members_btn.hide();
}
let members_count = self.ui.builder
.get_object::<gtk::Label>("members_count")
.expect("Can't find member_count in ui file.");
members_count.set_text(&format!("{}", members.len()));
}
pub fn show_all_members(&self) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment