From 8da8e31d63f0022b8d95ac716b1aa630140e6640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 8 Apr 2021 10:36:05 +0300 Subject: [PATCH] examples: Update for gio::Application::run() API simplification --- examples/src/bin/gtksink.rs | 4 +--- examples/src/bin/gtkvideooverlay.rs | 5 +---- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/examples/src/bin/gtksink.rs b/examples/src/bin/gtksink.rs index d7f9f9a73..5d471ae19 100644 --- a/examples/src/bin/gtksink.rs +++ b/examples/src/bin/gtksink.rs @@ -17,7 +17,6 @@ use gio::prelude::*; use gtk::prelude::*; use std::cell::RefCell; -use std::env; fn create_ui(app: >k::Application) { let pipeline = gst::Pipeline::new(None); @@ -155,6 +154,5 @@ fn main() { let app = gtk::Application::new(None, gio::ApplicationFlags::FLAGS_NONE).unwrap(); app.connect_activate(create_ui); - let args = env::args().collect::>(); - app.run(&args); + app.run(); } diff --git a/examples/src/bin/gtkvideooverlay.rs b/examples/src/bin/gtkvideooverlay.rs index 95ccfbbe5..082b6133d 100644 --- a/examples/src/bin/gtkvideooverlay.rs +++ b/examples/src/bin/gtkvideooverlay.rs @@ -25,8 +25,6 @@ use gio::prelude::*; use gtk::prelude::*; -use std::env; - use std::os::raw::c_void; use std::cell::RefCell; @@ -269,6 +267,5 @@ fn main() { let app = gtk::Application::new(None, gio::ApplicationFlags::FLAGS_NONE).unwrap(); app.connect_activate(create_ui); - let args = env::args().collect::>(); - app.run(&args); + app.run(); }