diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2023-01-27 19:58:59 +0300 |
---|---|---|
committer | Sebastian Dröge <slomo@coaxion.net> | 2023-01-27 21:50:01 +0300 |
commit | c7209dbd4fe4e229fc34e7ef1253e416cc518ae3 (patch) | |
tree | b54b256e07ade22dcbc6efb08005f75d43ec7e54 /utils/togglerecord | |
parent | 62bfc545d370ec35063a52861bdc41be08bbdb99 (diff) |
Return exit code from `gio::Application::run()` from `main()`
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1065>
Diffstat (limited to 'utils/togglerecord')
-rw-r--r-- | utils/togglerecord/examples/gtk_recording.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/togglerecord/examples/gtk_recording.rs b/utils/togglerecord/examples/gtk_recording.rs index ff3af6ae8..9e9ab663d 100644 --- a/utils/togglerecord/examples/gtk_recording.rs +++ b/utils/togglerecord/examples/gtk_recording.rs @@ -326,7 +326,7 @@ fn create_ui(app: >k::Application) { }); } -fn main() { +fn main() -> glib::ExitCode { gst::init().unwrap(); gtk::init().unwrap(); @@ -336,5 +336,5 @@ fn main() { let app = gtk::Application::new(None::<&str>, gio::ApplicationFlags::FLAGS_NONE); app.connect_activate(create_ui); - app.run(); + app.run() } |