From eafaadb9b35f74f07ef83da3d3e738c9ae631f7c Mon Sep 17 00:00:00 2001 From: Amr Bashir Date: Thu, 26 Sep 2024 10:02:26 +0300 Subject: [PATCH] chore: fix `gtk_multiwebview` example on wayland (#1371) --- examples/gtk_multiwebview.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/gtk_multiwebview.rs b/examples/gtk_multiwebview.rs index 6e6533996..92dfb5ac1 100644 --- a/examples/gtk_multiwebview.rs +++ b/examples/gtk_multiwebview.rs @@ -63,21 +63,21 @@ fn main() -> wry::Result<()> { }) .with_url("https://tauri.app") .build()?; - let webview2 = WebViewBuilder::new_as_child(&window) + let webview2 = create_webview_builder() .with_bounds(Rect { position: LogicalPosition::new(size.width / 2, 0).into(), size: LogicalSize::new(size.width / 2, size.height / 2).into(), }) .with_url("https://github.com/tauri-apps/wry") .build()?; - let webview3 = WebViewBuilder::new_as_child(&window) + let webview3 = create_webview_builder() .with_bounds(Rect { position: LogicalPosition::new(0, size.height / 2).into(), size: LogicalSize::new(size.width / 2, size.height / 2).into(), }) .with_url("https://twitter.com/TauriApps") .build()?; - let webview4 = WebViewBuilder::new_as_child(&window) + let webview4 = create_webview_builder() .with_bounds(Rect { position: LogicalPosition::new(size.width / 2, size.height / 2).into(), size: LogicalSize::new(size.width / 2, size.height / 2).into(),