diff --git a/utils/fallbackswitch/examples/gtk_fallbackswitch.rs b/utils/fallbackswitch/examples/gtk_fallbackswitch.rs index 11723227..4a6c1bd9 100644 --- a/utils/fallbackswitch/examples/gtk_fallbackswitch.rs +++ b/utils/fallbackswitch/examples/gtk_fallbackswitch.rs @@ -210,7 +210,7 @@ fn create_ui(app: >k::Application) { bus.remove_watch().unwrap(); if let Some(timeout_id) = timeout_id.borrow_mut().take() { - glib::source_remove(timeout_id); + timeout_id.remove(); } }); } diff --git a/utils/togglerecord/examples/gtk_recording.rs b/utils/togglerecord/examples/gtk_recording.rs index 4491c8b7..fd1b8d8e 100644 --- a/utils/togglerecord/examples/gtk_recording.rs +++ b/utils/togglerecord/examples/gtk_recording.rs @@ -331,7 +331,7 @@ fn create_ui(app: >k::Application) { bus.remove_watch().unwrap(); if let Some(timeout_id) = timeout_id.borrow_mut().take() { - glib::source_remove(timeout_id); + timeout_id.remove(); } }); }