Skip to content

Commit 073dc8b

Browse files
committed
regenerate: more Into<Option<_>> in arg position
1 parent 9edb905 commit 073dc8b

File tree

223 files changed

+2620
-1762
lines changed

Some content is hidden

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

223 files changed

+2620
-1762
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 @ 03ab3b39fbaf)
1+
Generated by gir (https://github.com/gtk-rs/gir @ a0bb2ab2c2e6)
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 @ 03ab3b39fbaf)
1+
Generated by gir (https://github.com/gtk-rs/gir @ a0bb2ab2c2e6)
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 @ 03ab3b39fbaf)
1+
Generated by gir (https://github.com/gtk-rs/gir @ a0bb2ab2c2e6)
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 @ 03ab3b39fbaf)
1+
Generated by gir (https://github.com/gtk-rs/gir @ a0bb2ab2c2e6)
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 @ 03ab3b39fbaf)
1+
Generated by gir (https://github.com/gtk-rs/gir @ a0bb2ab2c2e6)
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 @ 03ab3b39fbaf)
1+
Generated by gir (https://github.com/gtk-rs/gir @ a0bb2ab2c2e6)
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 @ 03ab3b39fbaf)
1+
Generated by gir (https://github.com/gtk-rs/gir @ a0bb2ab2c2e6)
22
from gir-files (https://github.com/gtk-rs/gir-files @ c05f5cc23cb7)

gdk4-x11/src/auto/x11_device_manager_xi2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ impl X11DeviceManagerXI2Builder {
5858

5959
pub fn display(self, display: &impl IsA<gdk::Display>) -> Self {
6060
Self {
61-
builder: self.builder.property("display", display.clone().upcast()),
61+
builder: self.builder.property("display", display.as_ref().clone()),
6262
}
6363
}
6464

0 commit comments

Comments
 (0)