"Priority" constants for glib-rs 0.18
Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/620>
This commit is contained in:
committed by
Marge Bot
parent
aa513b5cd9
commit
a569b1c1a3
@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user