Update for glib::source_remove() removal

This commit is contained in:
Sebastian Dröge 2021-10-12 09:30:10 +03:00
parent d7fe610767
commit 37c3d2d8e0
9 changed files with 9 additions and 9 deletions

View file

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

View file

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

View file

@ -124,7 +124,7 @@ fn example_main() {
.expect("Unable to set the pipeline to the `Null` state");
bus.remove_watch().unwrap();
glib::source_remove(timeout_id);
timeout_id.remove();
}
fn main() {

View file

@ -141,7 +141,7 @@ fn main_loop() -> Result<(), Error> {
// incoming connections from clients.
main_loop.run();
glib::source_remove(id);
id.remove();
Ok(())
}

View file

@ -73,7 +73,7 @@ fn main_loop() -> Result<(), Error> {
// our quality content to connecting clients.
main_loop.run();
glib::source_remove(id);
id.remove();
Ok(())
}

View file

@ -77,7 +77,7 @@ fn main_loop() -> Result<(), Error> {
// our quality content to connecting clients.
main_loop.run();
glib::source_remove(id);
id.remove();
Ok(())
}

View file

@ -30,7 +30,7 @@ mod tutorial5 {
impl Drop for AppWindow {
fn drop(&mut self) {
if let Some(source_id) = self.timeout_id.take() {
glib::source_remove(source_id);
source_id.remove();
}
}
}

View file

@ -207,7 +207,7 @@ fn main() {
let mut data = data.lock().unwrap();
if let Some(source) = data.source_id.take() {
println!("stop feeding");
glib::source::source_remove(source);
source.remove();
}
})
.build(),

View file

@ -180,7 +180,7 @@ fn tutorial_main() -> Result<(), Error> {
pipeline.set_state(gst::State::Null)?;
bus.remove_watch()?;
glib::source_remove(timeout_id);
timeout_id.remove();
Ok(())
}