add a bunch of drop debug statements
This commit is contained in:
parent
b04b4f800d
commit
7f70ad44de
8 changed files with 44 additions and 0 deletions
|
@ -93,3 +93,9 @@ impl Mpris {
|
|||
vec![]
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for Mpris {
|
||||
fn drop(&mut self) {
|
||||
println!("dropping Mpris");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -504,3 +504,9 @@ impl Player {
|
|||
true
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for Player {
|
||||
fn drop(&mut self) {
|
||||
println!("dropping MprisPlayer");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -170,6 +170,8 @@ impl Handle {
|
|||
|
||||
impl Drop for Handle {
|
||||
fn drop(&mut self) {
|
||||
println!("dropping MpvHandle");
|
||||
|
||||
// let any executor ticking tasks know we're ded
|
||||
self.wakeup.notify(u32::MAX.relaxed());
|
||||
|
||||
|
|
|
@ -171,3 +171,9 @@ impl Client {
|
|||
.map(|response| response.random_songs.song)
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for Client {
|
||||
fn drop(&mut self) {
|
||||
println!("dropping SubsonicClient");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -84,6 +84,12 @@ mod imp {
|
|||
self.obj().playbin().unwrap().select_track(position);
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for PlayQueue {
|
||||
fn drop(&mut self) {
|
||||
println!("dropping AudreyUiPlayQueue");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
use gtk::glib;
|
||||
|
|
|
@ -161,6 +161,12 @@ mod imp {
|
|||
false
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for Song {
|
||||
fn drop(&mut self) {
|
||||
println!("dropping AudreyUiPlayQueueSong");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
use adw::prelude::*;
|
||||
|
|
|
@ -160,6 +160,12 @@ mod imp {
|
|||
playbin.set_mute(!playbin.mute());
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for Playbar {
|
||||
fn drop(&mut self) {
|
||||
println!("dropping AudreyUiPlaybar");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
use gtk::glib;
|
||||
|
|
|
@ -147,6 +147,12 @@ mod imp {
|
|||
self.obj().emit_by_name::<()>("connected", &[&vala_api]);
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for Setup {
|
||||
fn drop(&mut self) {
|
||||
println!("dropping AudreyUiSetup");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
use adw::subclass::prelude::*;
|
||||
|
|
Loading…
Reference in a new issue