gtk4: Avoid deprecated function with newer gtk

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2166>
This commit is contained in:
Doug Nazar 2025-03-28 14:43:01 -04:00 committed by GStreamer Marge Bot
parent a12b4e200c
commit 52cf612ead

View file

@ -826,6 +826,9 @@ impl PaintableSink {
}
});
#[cfg(feature = "gtk_v4_10")]
window.set_visible(true);
#[cfg(not(feature = "gtk_v4_10"))]
window.show();
*window_guard = Some(ThreadGuard::new(window));