mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-23 18:40:32 +00:00
gtk4paintablesink: Add env var to fullscreen window
For testing purposes with e.g. gst-launch. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1555>
This commit is contained in:
parent
16b0a4d762
commit
47b788d44b
1 changed files with 3 additions and 0 deletions
|
@ -713,6 +713,9 @@ impl PaintableSink {
|
||||||
window.set_child(Some(&picture));
|
window.set_child(Some(&picture));
|
||||||
}
|
}
|
||||||
window.set_default_size(640, 480);
|
window.set_default_size(640, 480);
|
||||||
|
if std::env::var("GST_GTK4_WINDOW_FULLSCREEN").as_deref() == Ok("1") {
|
||||||
|
window.set_fullscreened(true);
|
||||||
|
}
|
||||||
|
|
||||||
window.connect_close_request({
|
window.connect_close_request({
|
||||||
let self_ = self_.clone();
|
let self_ = self_.clone();
|
||||||
|
|
Loading…
Reference in a new issue