Open communities in a list by a single click

This commit is contained in:
Bnyro 2023-06-28 09:04:56 +02:00
parent 53e2e6f572
commit 380e95235d
1 changed files with 6 additions and 5 deletions

View File

@ -34,6 +34,12 @@ impl FactoryComponent for CommunityRow {
set_margin_start: 10,
set_vexpand: false,
add_controller = gtk::GestureClick {
connect_pressed[sender] => move |_, _, _, _| {
sender.input(CommunityRowMsg::OpenCommunity);
}
},
gtk::Box {
set_orientation: gtk::Orientation::Horizontal,
set_spacing: 10,
@ -59,11 +65,6 @@ impl FactoryComponent for CommunityRow {
gtk::Label {
set_label: &format!("{} subscribers, {} posts", self.community.counts.subscribers, self.community.counts.posts),
},
gtk::Button {
set_label: "View",
connect_clicked => CommunityRowMsg::OpenCommunity,
},
},
gtk::Separator {}