From 7344e4bab2d3d81f6690a03b0e3648a9b35809fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 12 Mar 2023 10:26:06 +0200 Subject: [PATCH] tutorials: Update for `glib::Priority` API changes Part-of: --- tutorials/src/bin/basic-tutorial-13.rs | 2 +- tutorials/src/bin/playback-tutorial-5.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tutorials/src/bin/basic-tutorial-13.rs b/tutorials/src/bin/basic-tutorial-13.rs index 5741f127c..6a4c392ae 100644 --- a/tutorials/src/bin/basic-tutorial-13.rs +++ b/tutorials/src/bin/basic-tutorial-13.rs @@ -116,7 +116,7 @@ USAGE: Choose one of the following options, then press enter: let _guard = main_context.acquire().unwrap(); // Build the channel to get the terminal inputs from a different thread. - let (ready_tx, ready_rx) = glib::MainContext::channel(glib::PRIORITY_DEFAULT); + let (ready_tx, ready_rx) = glib::MainContext::channel(glib::Priority::DEFAULT); thread::spawn(move || handle_keyboard(ready_tx)); diff --git a/tutorials/src/bin/playback-tutorial-5.rs b/tutorials/src/bin/playback-tutorial-5.rs index 2e113b6bd..b1cfc57d8 100644 --- a/tutorials/src/bin/playback-tutorial-5.rs +++ b/tutorials/src/bin/playback-tutorial-5.rs @@ -104,7 +104,7 @@ fn tutorial_main() -> Result<(), Error> { let _guard = main_context.acquire().unwrap(); // Build the channel to get the terminal inputs from a different thread. - let (ready_tx, ready_rx) = glib::MainContext::channel(glib::PRIORITY_DEFAULT); + let (ready_tx, ready_rx) = glib::MainContext::channel(glib::Priority::DEFAULT); // Start the keyboard handling thread thread::spawn(move || handle_keyboard(ready_tx));