From 1a830c7c78ebab01d66fea4fa8fae0b32deba6b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 12 Oct 2021 09:31:25 +0300 Subject: [PATCH] Update for glib::source_remove() removal --- utils/fallbackswitch/examples/gtk_fallbackswitch.rs | 2 +- utils/togglerecord/examples/gtk_recording.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); } }); }