Skip to content

Commit 6208afb

Browse files
committed
regen for git MR#1622
gtk-rs/gir#1622
1 parent 5f3d922 commit 6208afb

File tree

22 files changed

+40
-28
lines changed

22 files changed

+40
-28
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 @ 1364a207b03e)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5262e0fefdc7)

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 @ 1364a207b03e)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5262e0fefdc7)

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 @ 1364a207b03e)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5262e0fefdc7)

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 @ 1364a207b03e)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5262e0fefdc7)

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 @ 1364a207b03e)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5262e0fefdc7)

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 @ 1364a207b03e)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5262e0fefdc7)

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 @ 1364a207b03e)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5262e0fefdc7)

gdk4-x11/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 @ 1364a207b03e)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 9e6d0758f347)
22
from gir-files (https://github.com/gtk-rs/gir-files @ 5262e0fefdc7)

gdk4/src/auto/content_formats.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ glib::wrapper! {
1818

1919
impl ContentFormats {
2020
#[doc(alias = "gdk_content_formats_new")]
21-
pub fn new(mime_types: &[&str]) -> ContentFormats {
21+
pub fn new(mime_types: Option<&[&str]>) -> ContentFormats {
2222
assert_initialized_main_thread!();
23-
let n_mime_types = mime_types.len() as _;
23+
let n_mime_types = mime_types.map(|arr| arr.len()).unwrap_or(0) as _;
2424
unsafe {
2525
from_glib_full(ffi::gdk_content_formats_new(
2626
mime_types.to_glib_none().0,

gdk4/src/auto/content_provider.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ impl ContentProvider {
4747
}
4848

4949
#[doc(alias = "gdk_content_provider_new_union")]
50-
pub fn new_union(providers: &[ContentProvider]) -> ContentProvider {
50+
pub fn new_union(providers: Option<&[ContentProvider]>) -> ContentProvider {
5151
assert_initialized_main_thread!();
52-
let n_providers = providers.len() as _;
52+
let n_providers = providers.map(|arr| arr.len()).unwrap_or(0) as _;
5353
unsafe {
5454
from_glib_full(ffi::gdk_content_provider_new_union(
5555
providers.to_glib_full(),

0 commit comments

Comments
 (0)