diff options
author | François Laignel <francois@centricular.com> | 2023-08-02 14:16:55 +0300 |
---|---|---|
committer | François Laignel <francois@centricular.com> | 2023-08-02 14:19:22 +0300 |
commit | 10902c0485068a0d9d016598064abbdc6ef9d810 (patch) | |
tree | 119606350fd64f192a9e20e4dd07c68194014bed /utils | |
parent | 9680805bdb08076db1450ca717e6a0bb51fc468e (diff) |
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>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/fallbackswitch/examples/gtk_fallbackswitch.rs | 4 | ||||
-rw-r--r-- | utils/togglerecord/examples/gtk_recording.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/utils/fallbackswitch/examples/gtk_fallbackswitch.rs b/utils/fallbackswitch/examples/gtk_fallbackswitch.rs index 2b644c94b..8acb1a744 100644 --- a/utils/fallbackswitch/examples/gtk_fallbackswitch.rs +++ b/utils/fallbackswitch/examples/gtk_fallbackswitch.rs @@ -142,11 +142,11 @@ fn create_ui(app: >k::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(); diff --git a/utils/togglerecord/examples/gtk_recording.rs b/utils/togglerecord/examples/gtk_recording.rs index 17d90cd35..1c2d8d488 100644 --- a/utils/togglerecord/examples/gtk_recording.rs +++ b/utils/togglerecord/examples/gtk_recording.rs @@ -273,11 +273,11 @@ fn create_ui(app: >k::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(); |