@@ -768,7 +768,7 @@ impl<'a> WebViewBuilder<'a> {
768
768
}
769
769
770
770
/// Create a new [`WebViewBuilder`] with a web context that can be shared with multiple [`WebView`]s.
771
- pub fn with_web_context ( web_context : & ' a mut WebContext ) -> Self {
771
+ pub fn new_with_web_context ( web_context : & ' a mut WebContext ) -> Self {
772
772
let attrs = WebViewAttributes {
773
773
context : Some ( web_context) ,
774
774
..Default :: default ( )
@@ -783,7 +783,7 @@ impl<'a> WebViewBuilder<'a> {
783
783
}
784
784
785
785
/// Create a new [`WebViewBuilder`] with the given [`WebViewAttributes`]
786
- pub fn with_attributes ( attrs : WebViewAttributes < ' a > ) -> Self {
786
+ pub fn new_with_attributes ( attrs : WebViewAttributes < ' a > ) -> Self {
787
787
Self {
788
788
attrs,
789
789
#[ allow( clippy:: default_constructed_unit_structs) ]
@@ -1756,7 +1756,7 @@ impl WebView {
1756
1756
/// - Panics if the provided handle was not supported or invalid.
1757
1757
/// - Panics on Linux, if [`gtk::init`] was not called in this thread.
1758
1758
pub fn new ( window : & impl HasWindowHandle , attrs : WebViewAttributes ) -> Result < Self > {
1759
- WebViewBuilder :: with_attributes ( attrs) . build ( window)
1759
+ WebViewBuilder :: new_with_attributes ( attrs) . build ( window)
1760
1760
}
1761
1761
1762
1762
/// Create [`WebViewBuilder`] as a child window inside the provided [`HasWindowHandle`].
@@ -1782,7 +1782,7 @@ impl WebView {
1782
1782
/// - Panics if the provided handle was not support or invalid.
1783
1783
/// - Panics on Linux, if [`gtk::init`] was not called in this thread.
1784
1784
pub fn new_as_child ( parent : & impl HasWindowHandle , attrs : WebViewAttributes ) -> Result < Self > {
1785
- WebViewBuilder :: with_attributes ( attrs) . build_as_child ( parent)
1785
+ WebViewBuilder :: new_with_attributes ( attrs) . build_as_child ( parent)
1786
1786
}
1787
1787
1788
1788
/// Returns the id of this webview.
0 commit comments