Skip to content

Commit d36d1c5

Browse files
committed
Regenerate with latest gir / gir-files
1 parent 1c439c1 commit d36d1c5

File tree

201 files changed

+1716
-40
lines changed

Some content is hidden

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

201 files changed

+1716
-40
lines changed

gdk4-macos/src/auto/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)

gdk4-macos/sys/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)

gdk4-wayland/src/auto/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ pub use self::wayland_surface::WaylandSurface;
2525

2626
mod wayland_toplevel;
2727
pub use self::wayland_toplevel::WaylandToplevel;
28+
29+
pub(crate) mod traits {
30+
pub use super::wayland_surface::WaylandSurfaceExt;
31+
}

gdk4-wayland/src/auto/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)

gdk4-wayland/src/auto/wayland_surface.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
// DO NOT EDIT
44

55
use crate::ffi;
6+
use glib::prelude::*;
7+
#[cfg(feature = "v4_18")]
8+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
9+
use glib::translate::*;
610

711
glib::wrapper! {
812
#[doc(alias = "GdkWaylandSurface")]
@@ -16,3 +20,21 @@ glib::wrapper! {
1620
impl WaylandSurface {
1721
pub const NONE: Option<&'static WaylandSurface> = None;
1822
}
23+
24+
mod sealed {
25+
pub trait Sealed {}
26+
impl<T: super::IsA<super::WaylandSurface>> Sealed for T {}
27+
}
28+
29+
pub trait WaylandSurfaceExt: IsA<WaylandSurface> + sealed::Sealed + 'static {
30+
#[cfg(feature = "v4_18")]
31+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
32+
#[doc(alias = "gdk_wayland_surface_force_next_commit")]
33+
fn force_next_commit(&self) {
34+
unsafe {
35+
ffi::gdk_wayland_surface_force_next_commit(self.as_ref().to_glib_none().0);
36+
}
37+
}
38+
}
39+
40+
impl<O: IsA<WaylandSurface>> WaylandSurfaceExt for O {}

gdk4-wayland/sys/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ version = "4.12"
4545
[package.metadata.system-deps.gtk4_wayland.v4_16]
4646
version = "4.16"
4747

48+
[package.metadata.system-deps.gtk4_wayland.v4_18]
49+
version = "4.18"
50+
4851
[package.metadata.docs.rs]
4952
rustc-args = ["--cfg", "docsrs"]
5053
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
@@ -58,6 +61,7 @@ v4_4 = []
5861
v4_10 = ["v4_4"]
5962
v4_12 = ["v4_10"]
6063
v4_16 = ["v4_12"]
64+
v4_18 = ["v4_16"]
6165

6266
[dependencies]
6367
libc = "0.2"

gdk4-wayland/sys/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,9 @@ extern "C" {
255255
// GdkWaylandSurface
256256
//=========================================================================
257257
pub fn gdk_wayland_surface_get_type() -> GType;
258+
#[cfg(feature = "v4_18")]
259+
#[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
260+
pub fn gdk_wayland_surface_force_next_commit(surface: *mut GdkWaylandSurface);
258261
pub fn gdk_wayland_surface_get_wl_surface(surface: *mut GdkWaylandSurface) -> gpointer;
259262

260263
//=========================================================================

gdk4-wayland/sys/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)

gdk4-win32/src/auto/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)

gdk4-win32/sys/versions.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Generated by gir (https://github.com/gtk-rs/gir @ e06125dad46a)
2-
from gir-files (https://github.com/gtk-rs/gir-files @ 01066bc7d926)
1+
Generated by gir (https://github.com/gtk-rs/gir @ 2b05eaddce95)
2+
from gir-files (https://github.com/gtk-rs/gir-files @ 5089b7ff80cd)

0 commit comments

Comments
 (0)