From aa513b5cd93d68604691d560a9b581f99ccf6eed Mon Sep 17 00:00:00 2001 From: Peter Michael Green Date: Thu, 5 Oct 2023 19:31:30 +0000 Subject: [PATCH] Replace "Continue" with "ControlFlow" Part-of: --- src/main.rs | 4 ++-- src/panel.rs | 2 +- src/popover.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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 }); }