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));