Skip to content

Commit 8e7fb3c

Browse files
committed
regenerate: more Into<Option<_>> in arg position
1 parent 547edb0 commit 8e7fb3c

File tree

247 files changed

+5445
-3537
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

247 files changed

+5445
-3537
lines changed

gdk4-macos/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ ae29aefbe96a)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 24f0d6639caa)
22
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)

gdk4-macos/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ ae29aefbe96a)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 24f0d6639caa)
22
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)

gdk4-wayland/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ ae29aefbe96a)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 24f0d6639caa)
22
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)

gdk4-wayland/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ ae29aefbe96a)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 24f0d6639caa)
22
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)

gdk4-win32/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ ae29aefbe96a)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 24f0d6639caa)
22
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)

gdk4-win32/src/auto/win32_display.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ impl Win32Display {
2727
}
2828

2929
#[doc(alias = "gdk_win32_display_set_cursor_theme")]
30-
pub fn set_cursor_theme(&self, name: Option<&str>, size: i32) {
30+
pub fn set_cursor_theme<'a>(&self, name: impl Into<Option<&'a str>>, size: i32) {
3131
unsafe {
3232
ffi::gdk_win32_display_set_cursor_theme(
3333
self.to_glib_none().0,
34-
name.to_glib_none().0,
34+
name.into().to_glib_none().0,
3535
size,
3636
);
3737
}

gdk4-win32/sys/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ ae29aefbe96a)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 24f0d6639caa)
22
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)

gdk4-x11/src/auto/functions.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ pub fn x11_get_server_time(surface: &X11Surface) -> u32 {
3232
}
3333

3434
#[doc(alias = "gdk_x11_set_sm_client_id")]
35-
pub fn x11_set_sm_client_id(sm_client_id: Option<&str>) {
35+
pub fn x11_set_sm_client_id<'a>(sm_client_id: impl Into<Option<&'a str>>) {
3636
assert_initialized_main_thread!();
3737
unsafe {
38-
ffi::gdk_x11_set_sm_client_id(sm_client_id.to_glib_none().0);
38+
ffi::gdk_x11_set_sm_client_id(sm_client_id.into().to_glib_none().0);
3939
}
4040
}

gdk4-x11/src/auto/versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ ae29aefbe96a)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 24f0d6639caa)
22
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)

gdk4-x11/src/auto/x11_device_manager_xi2.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@ impl X11DeviceManagerXI2Builder {
5656
}
5757
}
5858

59-
pub fn display(self, display: &impl IsA<gdk::Display>) -> Self {
59+
pub fn display<'a, P: IsA<gdk::Display>>(self, display: impl Into<Option<&'a P>>) -> Self {
6060
Self {
61-
builder: self.builder.property("display", display.clone().upcast()),
61+
builder: self
62+
.builder
63+
.property("display", display.into().as_ref().map(|p| p.as_ref())),
6264
}
6365
}
6466

0 commit comments

Comments
 (0)