diff --git a/examples/src/bin/gtksink.rs b/examples/src/bin/gtksink.rs index 2d6b4a35d..70f072e6d 100644 --- a/examples/src/bin/gtksink.rs +++ b/examples/src/bin/gtksink.rs @@ -153,7 +153,7 @@ fn create_ui(app: >k::Application) { } if let Some(timeout_id) = timeout_id.borrow_mut().take() { - glib::source_remove(timeout_id); + timeout_id.remove(); } }); } diff --git a/examples/src/bin/gtkvideooverlay.rs b/examples/src/bin/gtkvideooverlay.rs index e78b996f4..5f5e0e28c 100644 --- a/examples/src/bin/gtkvideooverlay.rs +++ b/examples/src/bin/gtkvideooverlay.rs @@ -258,7 +258,7 @@ fn create_ui(app: >k::Application) { } if let Some(timeout_id) = timeout_id.borrow_mut().take() { - glib::source_remove(timeout_id); + timeout_id.remove(); } }); } diff --git a/examples/src/bin/queries.rs b/examples/src/bin/queries.rs index 22de6b1c2..505e72381 100644 --- a/examples/src/bin/queries.rs +++ b/examples/src/bin/queries.rs @@ -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() { diff --git a/examples/src/bin/rtsp-server-record.rs b/examples/src/bin/rtsp-server-record.rs index 5d09df196..02c4ae022 100644 --- a/examples/src/bin/rtsp-server-record.rs +++ b/examples/src/bin/rtsp-server-record.rs @@ -141,7 +141,7 @@ fn main_loop() -> Result<(), Error> { // incoming connections from clients. main_loop.run(); - glib::source_remove(id); + id.remove(); Ok(()) } diff --git a/examples/src/bin/rtsp-server-subclass.rs b/examples/src/bin/rtsp-server-subclass.rs index e4d96ec68..0cdd0cffb 100644 --- a/examples/src/bin/rtsp-server-subclass.rs +++ b/examples/src/bin/rtsp-server-subclass.rs @@ -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(()) } diff --git a/examples/src/bin/rtsp-server.rs b/examples/src/bin/rtsp-server.rs index 78933507e..5d8090388 100644 --- a/examples/src/bin/rtsp-server.rs +++ b/examples/src/bin/rtsp-server.rs @@ -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(()) } diff --git a/tutorials/src/bin/basic-tutorial-5.rs b/tutorials/src/bin/basic-tutorial-5.rs index a32c10bcf..41ad0c803 100644 --- a/tutorials/src/bin/basic-tutorial-5.rs +++ b/tutorials/src/bin/basic-tutorial-5.rs @@ -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(); } } } diff --git a/tutorials/src/bin/basic-tutorial-8.rs b/tutorials/src/bin/basic-tutorial-8.rs index ff2624d17..7178b047b 100644 --- a/tutorials/src/bin/basic-tutorial-8.rs +++ b/tutorials/src/bin/basic-tutorial-8.rs @@ -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(), diff --git a/tutorials/src/bin/playback-tutorial-4.rs b/tutorials/src/bin/playback-tutorial-4.rs index ab97c379a..ecf4316e3 100644 --- a/tutorials/src/bin/playback-tutorial-4.rs +++ b/tutorials/src/bin/playback-tutorial-4.rs @@ -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(()) }