From a569b1c1a3f924d1cd9b3d374837d8924ae2f87c Mon Sep 17 00:00:00 2001 From: Peter Michael Green Date: Thu, 5 Oct 2023 19:31:30 +0000 Subject: [PATCH] "Priority" constants for glib-rs 0.18 Part-of: --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 2e50d3a5..fd4e22ef 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,7 +10,7 @@ use crate::data::loading; use crate::event_loop; use crate::panel; use crate::state; -use glib::{ControlFlow, MainContext, PRIORITY_DEFAULT, Receiver}; +use glib::{ControlFlow, MainContext, Priority, Receiver}; mod c { @@ -103,7 +103,7 @@ mod c { pub extern "C" fn squeek_init() -> RsObjects { // Set up channels - let (sender, receiver) = MainContext::channel(PRIORITY_DEFAULT); + let (sender, receiver) = MainContext::channel(Priority::default()); let now = Instant::now(); let state_manager = driver::Threaded::new(sender, state::Application::new(now));