Update for glib::source_remove() removal

This commit is contained in:
Sebastian Dröge 2021-10-12 09:31:25 +03:00 committed by Sebastian Dröge
parent 21e8c6dcd1
commit 1a830c7c78
2 changed files with 2 additions and 2 deletions

View file

@ -210,7 +210,7 @@ fn create_ui(app: &gtk::Application) {
bus.remove_watch().unwrap();
if let Some(timeout_id) = timeout_id.borrow_mut().take() {
glib::source_remove(timeout_id);
timeout_id.remove();
}
});
}

View file

@ -331,7 +331,7 @@ fn create_ui(app: &gtk::Application) {
bus.remove_watch().unwrap();
if let Some(timeout_id) = timeout_id.borrow_mut().take() {
glib::source_remove(timeout_id);
timeout_id.remove();
}
});
}