diff --git a/utils/fallbackswitch/examples/gtk_fallbackswitch.rs b/utils/fallbackswitch/examples/gtk_fallbackswitch.rs index ead6d9abe..985266dd7 100644 --- a/utils/fallbackswitch/examples/gtk_fallbackswitch.rs +++ b/utils/fallbackswitch/examples/gtk_fallbackswitch.rs @@ -99,7 +99,7 @@ fn create_ui(app: >k::Application) { vbox.append(&drop_button); window.set_child(Some(&vbox)); - window.show(); + window.present(); app.add_window(&window); diff --git a/utils/livesync/examples/gtk_livesync.rs b/utils/livesync/examples/gtk_livesync.rs index c30da7abc..24e64de73 100644 --- a/utils/livesync/examples/gtk_livesync.rs +++ b/utils/livesync/examples/gtk_livesync.rs @@ -159,7 +159,7 @@ fn create_window(app: >k::Application) { }); window.set_child(Some(&vbox)); - window.show(); + window.present(); } fn main() -> glib::ExitCode { diff --git a/utils/togglerecord/examples/gtk_recording.rs b/utils/togglerecord/examples/gtk_recording.rs index ec930e98d..5b49a8273 100644 --- a/utils/togglerecord/examples/gtk_recording.rs +++ b/utils/togglerecord/examples/gtk_recording.rs @@ -210,7 +210,7 @@ fn create_ui(app: >k::Application) { vbox.append(&hbox); window.set_child(Some(&vbox)); - window.show(); + window.present(); app.add_window(&window); diff --git a/video/gtk4/examples/gtksink.rs b/video/gtk4/examples/gtksink.rs index a67576050..344e02be5 100644 --- a/video/gtk4/examples/gtksink.rs +++ b/video/gtk4/examples/gtksink.rs @@ -69,7 +69,7 @@ fn create_ui(app: >k::Application) { vbox.append(&label); window.set_child(Some(&vbox)); - window.show(); + window.present(); app.add_window(&window); diff --git a/video/gtk4/src/sink/imp.rs b/video/gtk4/src/sink/imp.rs index 90b42707a..8f56494b5 100644 --- a/video/gtk4/src/sink/imp.rs +++ b/video/gtk4/src/sink/imp.rs @@ -826,10 +826,7 @@ impl PaintableSink { } }); - #[cfg(feature = "gtk_v4_10")] - window.set_visible(true); - #[cfg(not(feature = "gtk_v4_10"))] - window.show(); + window.present(); *window_guard = Some(ThreadGuard::new(window)); });