mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-09-02 09:43:48 +00:00
gtk4: Use window.present()
instead of window.show()
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2252>
This commit is contained in:
parent
bb8393a5a3
commit
befe818a3f
5 changed files with 5 additions and 8 deletions
|
@ -99,7 +99,7 @@ fn create_ui(app: >k::Application) {
|
||||||
vbox.append(&drop_button);
|
vbox.append(&drop_button);
|
||||||
|
|
||||||
window.set_child(Some(&vbox));
|
window.set_child(Some(&vbox));
|
||||||
window.show();
|
window.present();
|
||||||
|
|
||||||
app.add_window(&window);
|
app.add_window(&window);
|
||||||
|
|
||||||
|
|
|
@ -159,7 +159,7 @@ fn create_window(app: >k::Application) {
|
||||||
});
|
});
|
||||||
|
|
||||||
window.set_child(Some(&vbox));
|
window.set_child(Some(&vbox));
|
||||||
window.show();
|
window.present();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() -> glib::ExitCode {
|
fn main() -> glib::ExitCode {
|
||||||
|
|
|
@ -210,7 +210,7 @@ fn create_ui(app: >k::Application) {
|
||||||
vbox.append(&hbox);
|
vbox.append(&hbox);
|
||||||
|
|
||||||
window.set_child(Some(&vbox));
|
window.set_child(Some(&vbox));
|
||||||
window.show();
|
window.present();
|
||||||
|
|
||||||
app.add_window(&window);
|
app.add_window(&window);
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ fn create_ui(app: >k::Application) {
|
||||||
vbox.append(&label);
|
vbox.append(&label);
|
||||||
|
|
||||||
window.set_child(Some(&vbox));
|
window.set_child(Some(&vbox));
|
||||||
window.show();
|
window.present();
|
||||||
|
|
||||||
app.add_window(&window);
|
app.add_window(&window);
|
||||||
|
|
||||||
|
|
|
@ -826,10 +826,7 @@ impl PaintableSink {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
#[cfg(feature = "gtk_v4_10")]
|
window.present();
|
||||||
window.set_visible(true);
|
|
||||||
#[cfg(not(feature = "gtk_v4_10"))]
|
|
||||||
window.show();
|
|
||||||
|
|
||||||
*window_guard = Some(ThreadGuard::new(window));
|
*window_guard = Some(ThreadGuard::new(window));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue