Open communities in a list by a single click
This commit is contained in:
parent
53e2e6f572
commit
380e95235d
|
@ -34,6 +34,12 @@ impl FactoryComponent for CommunityRow {
|
||||||
set_margin_start: 10,
|
set_margin_start: 10,
|
||||||
set_vexpand: false,
|
set_vexpand: false,
|
||||||
|
|
||||||
|
add_controller = gtk::GestureClick {
|
||||||
|
connect_pressed[sender] => move |_, _, _, _| {
|
||||||
|
sender.input(CommunityRowMsg::OpenCommunity);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
gtk::Box {
|
gtk::Box {
|
||||||
set_orientation: gtk::Orientation::Horizontal,
|
set_orientation: gtk::Orientation::Horizontal,
|
||||||
set_spacing: 10,
|
set_spacing: 10,
|
||||||
|
@ -59,11 +65,6 @@ impl FactoryComponent for CommunityRow {
|
||||||
gtk::Label {
|
gtk::Label {
|
||||||
set_label: &format!("{} subscribers, {} posts", self.community.counts.subscribers, self.community.counts.posts),
|
set_label: &format!("{} subscribers, {} posts", self.community.counts.subscribers, self.community.counts.posts),
|
||||||
},
|
},
|
||||||
|
|
||||||
gtk::Button {
|
|
||||||
set_label: "View",
|
|
||||||
connect_clicked => CommunityRowMsg::OpenCommunity,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
gtk::Separator {}
|
gtk::Separator {}
|
||||||
|
|
Loading…
Reference in New Issue