Skip to content

Commit 93f4460

Browse files
committed
work in progress
1 parent f26046a commit 93f4460

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

gtk/src/ui/playlist.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,18 @@ mod imp {
111111
impl ObjectImpl for Playlist {
112112
fn constructed(&self) {
113113
self.parent_constructed();
114+
let self_weak = self.downgrade();
115+
let click = gtk::GestureClick::new();
116+
click.connect_released(move |_, _, _, _| {
117+
if let Some(self_) = self_weak.upgrade() {
118+
let go_back_button = self_.go_back_button.borrow();
119+
if let Some(go_back_button) = go_back_button.as_ref() {
120+
go_back_button.set_visible(true);
121+
}
122+
}
123+
});
124+
125+
self.row.add_controller(click);
114126
}
115127
}
116128

0 commit comments

Comments
 (0)