From 4464bf2eaac214aade6be0248859823cc9e837a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 16 Jan 2023 11:51:10 +0200 Subject: [PATCH] Update for `gtk::Application` constructor API changes --- utils/fallbackswitch/examples/gtk_fallbackswitch.rs | 2 +- utils/togglerecord/examples/gtk_recording.rs | 2 +- video/gtk4/examples/gtksink.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/fallbackswitch/examples/gtk_fallbackswitch.rs b/utils/fallbackswitch/examples/gtk_fallbackswitch.rs index d5f5d8c6..0f295725 100644 --- a/utils/fallbackswitch/examples/gtk_fallbackswitch.rs +++ b/utils/fallbackswitch/examples/gtk_fallbackswitch.rs @@ -203,7 +203,7 @@ fn main() { gstfallbackswitch::plugin_register_static().expect("Failed to register fallbackswitch plugin"); gstgtk4::plugin_register_static().expect("Failed to register gtk4paintablesink plugin"); - let app = gtk::Application::new(None, gio::ApplicationFlags::FLAGS_NONE); + let app = gtk::Application::new(None::<&str>, gio::ApplicationFlags::FLAGS_NONE); app.connect_activate(create_ui); app.run(); diff --git a/utils/togglerecord/examples/gtk_recording.rs b/utils/togglerecord/examples/gtk_recording.rs index e90241a7..ab5d441a 100644 --- a/utils/togglerecord/examples/gtk_recording.rs +++ b/utils/togglerecord/examples/gtk_recording.rs @@ -333,7 +333,7 @@ fn main() { gsttogglerecord::plugin_register_static().expect("Failed to register togglerecord plugin"); gstgtk4::plugin_register_static().expect("Failed to register gtk4paintablesink plugin"); - let app = gtk::Application::new(None, gio::ApplicationFlags::FLAGS_NONE); + let app = gtk::Application::new(None::<&str>, gio::ApplicationFlags::FLAGS_NONE); app.connect_activate(create_ui); app.run(); diff --git a/video/gtk4/examples/gtksink.rs b/video/gtk4/examples/gtksink.rs index 867dc1ea..160ef281 100644 --- a/video/gtk4/examples/gtksink.rs +++ b/video/gtk4/examples/gtksink.rs @@ -147,7 +147,7 @@ fn main() { gstgtk4::plugin_register_static().expect("Failed to register gstgtk4 plugin"); - let app = gtk::Application::new(None, gio::ApplicationFlags::FLAGS_NONE); + let app = gtk::Application::new(None::<&str>, gio::ApplicationFlags::FLAGS_NONE); app.connect_activate(create_ui); app.run();