utils: fix further to glib change ControlFlow -> Propagation

See: https://github.com/gtk-rs/gtk-rs-core/pull/1144
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1292>
This commit is contained in:
François Laignel 2023-08-02 13:16:55 +02:00
parent 9680805bdb
commit 10902c0485
2 changed files with 4 additions and 4 deletions

View file

@ -142,11 +142,11 @@ fn create_ui(app: &gtk::Application) {
window.connect_close_request(move |_| {
let app = match app_weak.upgrade() {
Some(app) => app,
None => return glib::ControlFlow::Break,
None => return glib::Propagation::Stop,
};
app.quit();
glib::ControlFlow::Break
glib::Propagation::Stop
});
let bus = pipeline.bus().unwrap();

View file

@ -273,11 +273,11 @@ fn create_ui(app: &gtk::Application) {
window.connect_close_request(move |_| {
let app = match app_weak.upgrade() {
Some(app) => app,
None => return glib::ControlFlow::Break,
None => return glib::Propagation::Stop,
};
app.quit();
glib::ControlFlow::Break
glib::Propagation::Stop
});
let bus = pipeline.bus().unwrap();