mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-09-03 10:13:47 +00:00
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:
parent
a12b4e200c
commit
52cf612ead
1 changed files with 3 additions and 0 deletions
|
@ -826,6 +826,9 @@ impl PaintableSink {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
#[cfg(feature = "gtk_v4_10")]
|
||||||
|
window.set_visible(true);
|
||||||
|
#[cfg(not(feature = "gtk_v4_10"))]
|
||||||
window.show();
|
window.show();
|
||||||
|
|
||||||
*window_guard = Some(ThreadGuard::new(window));
|
*window_guard = Some(ThreadGuard::new(window));
|
||||||
|
|
Loading…
Reference in a new issue