Replace "Continue" with "ControlFlow"

Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/620>
This commit is contained in:
Peter Michael Green
2023-10-05 19:31:30 +00:00
committed by Marge Bot
parent df6221ae92
commit aa513b5cd9
3 changed files with 4 additions and 4 deletions

View File

@ -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"))]

View File

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

View File

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