diff --git a/src/main.rs b/src/main.rs index bc051ff7..2e50d3a5 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::{Continue, MainContext, PRIORITY_DEFAULT, Receiver}; +use glib::{ControlFlow, MainContext, PRIORITY_DEFAULT, Receiver}; mod c { @@ -163,7 +163,7 @@ mod c { hint_manager, dbus_handler, ); - Continue(true) + ControlFlow::Continue }, ); #[cfg(not(feature = "glib_v0_14"))] diff --git a/src/panel.rs b/src/panel.rs index 0829899d..5443f4b1 100644 --- a/src/panel.rs +++ b/src/panel.rs @@ -66,7 +66,7 @@ pub mod c { glib::idle_add_local(move || { let panel = panel.clone_ref(); panel.borrow_mut().set_configured(Size{width, height}); - glib::Continue(false) + glib::ControlFlow::Break }); } } diff --git a/src/popover.rs b/src/popover.rs index 2a506d83..1fde031e 100644 --- a/src/popover.rs +++ b/src/popover.rs @@ -376,6 +376,6 @@ pub fn show( menu.bind_model(Some(&model), Some("popup")); glib::idle_add_local(move || { menu.popup(); - Continue(false) + glib::ControlFlow::Break }); }